Skip to content
Prev 169232 / 398503 Next

chi squared goodness of fit test with R

You might try the cut() function to convert your data from a continuous
measure into an ordinal factor.  Then use the table() function to get your
contingency table.

The R help system is very extensive.  Type "?cut" to get the help on the
function cut().  This works with all functions.  Look at the examples at the
bottom of the help.

You might want to run through "An Introduction to R" which is available
through the help menu.

Good luck,
Ian
evrim akar wrote: