tpcExample | R Documentation |
A small simulated data example intended to showcase the TPC algorithm. Note that the variable name prefixes defines with period they are related to ("child", "youth" or "oldage").
tpcExample
A data.frame with 200 rows and 6 variables.
Structural equation: X1 := ε1 with ε1 ~ Unif{0,1}
Structural equation: X2 := 2 * X1 + ε2 with ε2 ~ N(0,1)
Structural equation: X3 := ε3 with ε3 ~ Unif{0, 1}
Structural equation: X4 := X2 + ε4 with ε4 ~ N(0,1)
Structural equation: X5 := X3^2 + X3 - 3 * X2 + ε5 with ε5 ~ N(0,1)
Structural equation: X6 := X4^3 + X4^2 + 2 * X5 + ε6 with ε6 ~ N(0,1)
Petersen, AH; Osler, M \& Ekstrøm, CT (2021): Data-Driven Model Building for Life-Course Epidemiology, American Journal of Epidemiology.
data(tpcExample)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.