| simulateInterventions {backShift} | R Documentation |
Simulate data of a causal cyclic model under shift interventions.
Description
Simulate data of a causal cyclic model under shift interventions.
Usage
simulateInterventions(
n,
p,
A,
G,
intervMultiplier,
noiseMult,
nonGauss,
hiddenVars,
knownInterventions,
fracVarInt,
simulateObs,
seed = 1
)
Arguments
n |
Number of observations. |
p |
Number of variables. |
A |
Connectivity matrix A. The entry |
G |
Number of environments, has to be larger than two for |
intervMultiplier |
Regulates the strength of the interventions. |
noiseMult |
Regulates the noise variance. |
nonGauss |
Set to |
|
Set to | |
knownInterventions |
Set to |
fracVarInt |
If |
simulateObs |
If |
seed |
Random seed. |
Value
A list with the following elements:
-
X(nxp)-dimensional data matrix -
environmentIndicator of the experiment or the intervention type an observation belongs to. A numeric vector of length n. -
interventionVar(Gxp)-dimensional matrix with intervention variances. -
interventionsLocation of interventions ifknownInterventionswas set toTRUE. -
configsA list with the following elements:-
trueATrue connectivity matrix used to generate the data. -
GNumber of environments. -
indexObservationalDataIndex of observational data -
intervMultiplierMultiplier steering the intervention strength -
noiseMultMultiplier steering the noise level -
fracVarIntIfknownInterventionswas set toTRUE, fraction of variables that were intervened on in each environment. -
hiddenVarsIfTRUE, hidden variables exist. -
knownInterventionsIfTRUE, location of interventions is known. -
simulateObsIfTRUE, environment1contains observational data.
-
References
Dominik Rothenhaeusler, Christina Heinze, Jonas Peters, Nicolai Meinshausen (2015): backShift: Learning causal cyclic graphs from unknown shift interventions. arXiv preprint: http://arxiv.org/abs/1506.02494