Demo.growth: Demo dataset for a illustrating a linear growth model.

Description Usage Format See Also Examples

Description

A toy dataset containing measures on 4 time points (t1,t2, t3 and t4), two predictors (x1 and x2) influencing the random intercept and slope, and a time-varying covariate (c1, c2, c3 and c4).

Usage

1

Format

A data frame of 400 observations of 10 variables.

t1

Measured value at time point 1

t2

Measured value at time point 2

t3

Measured value at time point 3

t4

Measured value at time point 4

x1

Predictor 1 influencing intercept and slope

x2

Predictor 2 influencing intercept and slope

c1

Time-varying covariate time point 1

c2

Time-varying covariate time point 2

c3

Time-varying covariate time point 3

c4

Time-varying covariate time point 4

See Also

growth

Examples

1

Example output

This is lavaan 0.5-23.1097
lavaan is BETA software! Please report any bugs.
          t1         t2         t3          t4         x1         x2
1  1.7256454  2.1424005  2.7731717  2.51595586 -1.1641026  0.1742293
2 -1.9841595 -4.4006027 -6.0165563 -7.02961801 -1.7454025 -1.5768602
3  0.3195183 -1.2691171  1.5600160  2.86852958  0.9202112 -0.1418180
4  0.7769485  3.5313707  3.1382114  5.36374139  2.3595236  0.7079681
5  0.4489440 -0.7727747 -1.5035150  0.07846742 -1.0887077 -1.0099977
6 -1.7469951 -0.9963400 -0.8242174  0.56692480 -0.5135169 -0.1440428
           c1         c2         c3          c4
1 -0.02767765  0.5549234  0.2544784 -1.00639541
2 -2.03196724  0.1253348 -1.5642323  1.22926875
3  0.05237496 -1.2577408 -1.8033909 -0.32725761
4  0.01911429  0.6473830 -0.4323795 -1.03239779
5  0.65243274  0.7309148 -0.7537816 -0.02745598
6 -0.04452906 -0.4168022 -1.2411670  0.51719763

lavaan documentation built on March 10, 2021, 5:05 p.m.

Related to Demo.growth in lavaan...