schoolclass {asuR}R Documentation

Schools and Classes

Description

A data set for studying nested random factors.

Usage

data(schoolclass)

Format

A data frame with 300 observations on the following 4 variables.

school
a factor with 300 levels
class
a factor with 300 levels
gender
a factor with levels female male
score
a numeric vector

Details

A simulated data set with the parameters: variance among schools (100), variance among classes (50), residual variance (10), factor gender: level female (200), level male (100).

Source

thomas.fabbro@unibas.ch

Examples

data(schoolclass)
str(schoolclass)
#
#with library(lme4)
# (m0 <- lmer(y ~ gender + (1|school/class), data=schoolclass))

[Package asuR version 0.08-24 Index]