tpcExample: Simulated data example

tpcExampleR Documentation

Simulated data example

Description

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").

Usage

tpcExample

Format

A data.frame with 200 rows and 6 variables.

child_x1

Structural equation: X1 := ε1 with ε1 ~ Unif{0,1}

child_x2

Structural equation: X2 := 2 * X1 + ε2 with ε2 ~ N(0,1)

youth_x3

Structural equation: X3 := ε3 with ε3 ~ Unif{0, 1}

youth_x4

Structural equation: X4 := X2 + ε4 with ε4 ~ N(0,1)

oldage_x5

Structural equation: X5 := X3^2 + X3 - 3 * X2 + ε5 with ε5 ~ N(0,1)

oldage_x6

Structural equation: X6 := X4^3 + X4^2 + 2 * X5 + ε6 with ε6 ~ N(0,1)

References

Petersen, AH; Osler, M \& Ekstrøm, CT (2021): Data-Driven Model Building for Life-Course Epidemiology, American Journal of Epidemiology.

Examples

 data(tpcExample)
 

causalDisco documentation built on May 12, 2022, 9:05 a.m.