Learn R Programming

mvctm (version 1.0)

toydata: Artificial 4-level data set

Description

A 4-level data set with two responses and two covariates to illustrate the package mvctm. The classroom is nested within the school which is nested within the region.

Usage

data(toydata)

Arguments

Format

A data frame with 150 observations on the following 7 variables.
y1
The first response
y2
The second response
x1
The first covariate
x2
The second covariate
region
The level 1 cluster (outer)
school
The level 2 cluster (middle)
classroom
The level 3 cluster (inner)

Examples

Run this code
data(toydata)

Run the code above in your browser using DataLab