Learn R Programming

rlme (version 0.5)

instruction: Instruction

Description

A data frame on school instruction results.

Arguments

Format

A data frame with 1190 observations on the following 13 variables.

X

a numeric vector

girl

a numeric vector

minority

a numeric vector

mathkind

a numeric vector

mathgain

a numeric vector

ses

a numeric vector

yearstea

a numeric vector

mathknow

a numeric vector

housepov

a numeric vector

mathprep

a numeric vector

classid

a numeric vector identifying the class within school

schoolid

a numeric vector identifying the school

childid

a numeric vector

Examples

Run this code
# NOT RUN {
# The following code takes a few minutes to run.
# In the interest of saving CRAN's example testing time,
# it has been commented out. If you want to use it,
# just uncomment and run.

# data(instruction)
# attach(instruction)

# data = data.frame(
#   y = mathgain,
#   mathkind = mathkind, 
#   girl = girl,
#   minority = minority,
#   ses = ses, 
#   school = factor(schoolid), 
#   section = factor(classid))


# fit.rlme = rlme(y ~ 1 + mathkind + girl + minority + ses + (1 | school) + (1 | school:section),
#  data = data,
#  method = "gr")
  
# summary(fit.rlme)
# }

Run the code above in your browser using DataLab