tpcExample {causalDisco}R 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:=ϵ1X1 := \epsilon1 with ϵ1 Unif0,1\epsilon1 ~ Unif{0,1}

child_x2

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

youth_x3

Structural equation: X3:=ϵ3X3 := \epsilon3 with ϵ3 Unif0,1\epsilon3 ~ Unif{0, 1}

youth_x4

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

oldage_x5

Structural equation: X5:=X32+X33X2+ϵ5X5 := X3^2 + X3 - 3 * X2 + \epsilon5 with ϵ5 N(0,1)\epsilon5 ~ N(0,1)

oldage_x6

Structural equation: X6:=X43+X42+2X5+ϵ6X6 := X4^3 + X4^2 + 2 * X5 + \epsilon6 with ϵ6 N(0,1)\epsilon6 ~ 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)
 

[Package causalDisco version 0.9.1 Index]