Hey Guys,

i have the sample variances for 1000 samples, and i want to fit it to a 
chi-squared distribution.

after making a loop for the simulation initially, i have the following code to 
compute the variances
samples = replicate(n, rnorm(m, 0, 1), simplify=FALSE)
variances = sapply(samples, var)
summary(variances)
can someone please help me fit this to a chi-squared distribution with n 
degrees of freedom.
Thanks a lot 

_________________________________________________________________
[[elided Hotmail spam]]

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to