Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

backdoor

Backdoor criterion


Description

Check backdoor criterion of a lvm object

Usage

backdoor(object, f, cond, ..., return.graph = FALSE)

Arguments

object

lvm object

f

formula. Conditioning, z, set can be given as y~x|z

cond

Vector of variables to conditon on

...

Additional arguments to lower level functions

return.graph

Return moral ancestral graph with z and effects from x removed

Examples

m <- lvm(y~c2,c2~c1,x~c1,m1~x,y~m1, v1~c3, x~c3,v1~y,
         x~z1, z2~z1, z2~z3, y~z3+z2+g1+g2+g3)
ll <- backdoor(m, y~x)
backdoor(m, y~x|c1+z1+g1)

lava

Latent Variable Models

v1.6.10
GPL-3
Authors
Klaus K. Holst [aut, cre], Brice Ozenne [ctb], Thomas Gerds [ctb]
Initial release
2021-09-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.