I have a vector of observed values and also a vector of values calculated with model:
actual <- c(1411,439,214,100,62,38,29,64)
expected <- c(1425.3,399.5,201.6,116.9,72.2,46.3,30.4,64.8)
Now I'm using the Chi-squared goodness of fit test to see how well my model performs. I wrote the following:
chisq.test(expected,actual)
but it doesn't work. Can you help me with this?