I am trying to perform goodness of fit test using R. I am using this website http://wiener.math.csi.cuny.edu/Statistics/R/simpleR/stat013.html for help. However, I am unable to carry out the test successfully. My code follows. It is taken from the website just mentioned. 
freq=c(22,21,22,27,22,36) # frequencies obtained after rolling the dice 150 times.
prob=c(1,1,1,1,1,1)/6 # specify expected frequency for each category.
chisq.test(freq,p=prob) # I do not know what this line means. I just followed instructions on the website.
The erorr I receive is "erorr in chisq.test(freq,p=prob)/6 probabilities must sum to 1" 

I am very new to R, so any help would be appreciated. 
Faiz.
	[[alternative HTML version deleted]]

