[R] Goodness of fit tests

2008-04-08 Thread Alexandra Ramos
Dear all, Is it possible to use chisq.test(x,p) (where x = c(N1,...,Nk) are the counts in the k "bins" and p is a vector of the probabilities that a random observation will fall in the various bins) to test the goodness of fit of a certain distribution for which we had to estimate the paramete

[R] test for the variance of a normal population

2008-04-07 Thread Alexandra Ramos
Hi, Does anyone know an instruction to perform a test (or to construct a confidence interval) for the variance of a normal population (distribution). The test statistic is (n-1)*S´^2/sigma^2 and has chi square (n-1) distribution. Thank you, Alexandra [[alternative HTML