R/demo.dag4.R

Defines functions demo.dag4

Documented in demo.dag4

demo.dag4 <-
function()
{ # creates a miscellaneous DAG;
  # check out adjustment for the exposure's child!
  dag<-dag.init(covs=c(1,1,1), arcs=c(0,1, 0,2, 1,2, 1,3, 3,-1));
  dag$y[3]<-0.25;
  return(dag);
}

Try the dagR package in your browser

Any scripts or data that you put into this service are public.

dagR documentation built on Oct. 9, 2022, 5:06 p.m.