Displaying 1 result from an estimated 1 matches for "eqivel".
Did you mean:
nivel
2010 Jan 21
1
Simple effects with Design / rms ols() function
...~ Gender*UCS, data=exD) # run the model. UCS
coefficient is for females
summary(m.lm.f)
contrasts(exD$Gender) <- contr.treatment(2, base=2) # set reference
group to male
m.lm.m <- lm(GPA ~ Gender*UCS, data=exD) # run the model. UCS
coefficient is for males
summary(m.lm.m)
## try to do the eqivelent with ols ##
library(rms)
dd <- datadist(exD)
options(datadist="dd")
dd$limits["Adjust to", "Gender"] <- "F"
(m.ols.f <- ols(GPA ~ Gender*UCS, data=exD)) # run the model with
gender adjusted to f
dd$limits["Adjust to", "Gender&quo...