File: backdoor.Rd

package info (click to toggle)
r-cran-lava 1.8.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,816 kB
  • sloc: sh: 13; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/backdoor.R
\name{backdoor}
\alias{backdoor}
\title{Backdoor criterion}
\usage{
backdoor(object, f, cond, ..., return.graph = FALSE)
}
\arguments{
\item{object}{lvm object}

\item{f}{formula. Conditioning, z, set can be given as y~x|z}

\item{cond}{Vector of variables to conditon on}

\item{...}{Additional arguments to lower level functions}

\item{return.graph}{Return moral ancestral graph with z and effects from x removed}
}
\description{
Check backdoor criterion of a lvm object
}
\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)
}