[R] Goodness of fit tests

From: Alexandra Ramos <aramos_at_fep.up.pt>
Date: Tue, 08 Apr 2008 17:39:00 +0100


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 parameters? Is there another function to do that?  

Also, how can I use chisq.test or other function to perform a goodness of fit test for 2 independent samples (to check if they come from the same distribution)?

Ks.test is not adequate for discrete samples.  

And, is it possible to use ks.test to test the goodness of fit of a certain given distribution that is not in its list (as it is pnorm, pgamma, ...)?

Again I can't estimate any distribution parameter!

Is it possible to do a Lilliefors test in R?  

I couldn't find any of these answers in the literature. Can anyone help me?  

Alexandra

        [[alternative HTML version deleted]]



R-help_at_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. Received on Tue 08 Apr 2008 - 16:45:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 08 Apr 2008 - 17:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive