Displaying 1 result from an estimated 1 matches for "hammercatordfactor".
2011 Apr 11
2
ordered logistic regression - cdplot and polr
..., intercepts are different from those produced with a logistic
fit in JMP...
Code below, any help much appreciated.
Thanks
Beth
LogAntDensityFactor<-as.factor(LogAntDensity)
###order ordinal variable
HammerCatOrd<-ordered(HammerCat)
###set ordered ordinal dependent variable as factor
HammerCatOrdFactor<-as.factor(HammerCatOrd)
###density plot with three levels
cdplot(HammerCatOrdFactor~LogAntDensityFactor,xlab="Log(Ant
Density)",ylab="Latency
of response to disturbance (1-3)")
require(MASS)
logordered<-polr(HammerCatOrdFactor~LogAntDensityFactor,Hess=TRUE)
summary...