Skip to content
Prev 326335 / 398502 Next

polr?

On Jul 4, 2013, at 14:38 , D?niel Kehl wrote:

            
He'll likely find that difficult.

It's sort of like if you had data like this

25 75
75 25
25 75 

and did a trend test. The trend test _assumes_ that the effect is increasing, and constructs a test based on the slope. Since it it isn't increasing, the effect isn't found:
Chi-squared Test for Trend in Proportions

data:  c(25, 75, 25) out of c(100, 100, 100) ,
 using scores: 1 2 3 
X-squared = 0, df = 1, p-value = 1

However, if you fit the implied model, you get
Call:
glm(formula = cbind(c(25, 75, 25), c(75, 25, 75)) ~ score, family = binomial)

Deviance Residuals: 
     1       2       3  
-3.486   6.768  -3.486  

Coefficients:
              Estimate Std. Error z value Pr(>|z|)
(Intercept) -3.365e-01  3.098e-01  -1.086    0.277
score       -2.548e-16  1.434e-01   0.000    1.000

(Dispersion parameter for binomial family taken to be 1)

    Null deviance: 70.115  on 2  degrees of freedom
Residual deviance: 70.115  on 1  degrees of freedom
AIC: 88.444

Number of Fisher Scoring iterations: 3

where the z-value for the score coefficient is 0, but the residual deviance reveals that the model doesn't fit the data.