Re: [R] Chi-square values in GLM model comparison

2013-09-11 Thread Rune Haubo
There is no argument 'test' to anova.clm hence the error message. The likelihood ratio statistic (or, alternatively, G^2 statistic or Deviance statistic) has an asymptotic chi-square distribution, so it is the size of that statistic your reviewers are asking for. It is printed in the anova output

Re: [R] Chi-square values in GLM model comparison

2013-09-11 Thread Marc Schwartz
Torvon, There is some confusion in your postings, as in your first posting the models were GLM's but with the default gaussian family (not binomial) since the 'family' argument was not present in the glm() call and in the second post you have references to clm() which is for ordinal response cu

Re: [R] Chi-square values in GLM model comparison

2013-09-11 Thread Jose Iparraguirre
Hi Eiko, How about this? > anova (m1, m2, test="Chisq") See: ?anova.glm Regards, José Prof. José Iparraguirre Chief Economist Age UK -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Torvon Sent: 11 September 2013 16:48 To: r-

Re: [R] Chi-square values in GLM model comparison

2013-09-11 Thread Torvon
José, I get the following error message: > m1<-clm(sym_bin ~ phq_index, data=data2) > m2<-clm(sym_bin ~ 1, data=data2) > anova(m1,m2,test="Chisq") > Error in anova.clm(m1, m2, test = "Chisq") : > only 'clm' and 'clmm' objects are allowed My dependent variable is binary, so I don't know what th