Displaying 1 result from an estimated 1 matches for "pdsi2".
Did you mean:
pdsi
2010 Mar 11
0
Different results for different order of factor levels?
...from
the factor class different for ordered vs non-ordered factors but I am
unsure as to how this works for lme(). Shown below is a set of code
used to get the coefficients for two different orders of factor levels.
THE CODE USED TO GET THE COEFFICIENTS:
#Abbr = Subject
#PDSI = covariate
#PDSI2 = PDSI^2 (To fit a polynomial)
#Set the Level order
i.levels<-c("Mixed","Short","Tall","NoType")
#I am not interested in this level for my comparison
data.sub <- data[which(data$indep != "NoType"),]
#Convert the data into factors
data$indep...