mydata <- Read("Reading", format="lessR")
# compare least-squares models
# can specify all the variables in the full model
Nest(Reading, c(Absent), c(Verbal,Absent,Income))
# or, can specify just the additional variables in the full model
Nest(Reading, c(Absent), c(Verbal,Income))
# compare logistic models, save results into an object
# define the full model by adding just the variables
# not found in the reduced model
mydata <- Read("BodyMeas", format="lessR")
n <- Nest(Gender, c(Weight, Hips, Hand, Shoe),
c(Height, Waist, Chest), method="logit")
# view the results
n
# see the names of the available output components
names(n)
Run the code above in your browser using DataLab