Learn R Programming

CovSelHigh (version 1.0.0)

cov.sel.high.sim: Simulate Example Data for CovSelHigh

Description

Function used internally by cov.sel.high to simulates example data used in Häggström (2016).

Usage

cov.sel.high.sim(N, Setting, rep, Models)

Arguments

N
The number of observations to be simulated.
Setting
The simulation setting to be used. Unconfoundedness holds given X if Setting=1. M-bias given X if Setting=2.
rep
The number of replications to be simulated.
Models
The type of outcome models to be used, options are "Linear", "Nonlinear" and "Binary".

Value

cov.sel.high returns a list with the following content:
dat
A data frame with simulated data.

References

Häggström, J. (2016). Data-Driven Confounder Selection via Markov and Bayesian Networks. ArXiv e-prints.