simcausal: Simulating Longitudinal Data with Causal Inference Applications

A flexible tool for simulating complex longitudinal data using structural equations, with emphasis on problems in causal inference. Specify interventions and simulate from intervened data generating distributions. Define and evaluate treatment-specific means, the average treatment effects and coefficients from working marginal structural models. User interface designed to facilitate the conduct of transparent and reproducible simulation studies, and allows concise expression of complex functional dependencies for a large number of time-varying nodes. See the package vignette for more information, documentation and examples.

AuthorOleg Sofrygin [aut, cre], Mark J. van der Laan [aut], Romain Neugebauer [aut]
Date of publication2016-12-20 02:08:32
MaintainerOleg Sofrygin <oleg.sofrygin@gmail.com>
LicenseGPL-2
Version0.5.3
https://github.com/osofr/simcausal

View on CRAN

Man pages

A: Subsetting/Indexing Actions Defined for 'DAG' Object

add.action: Define and Add Actions (Interventions)

add.nodes: Adding Node(s) to DAG

DAG.empty: Initialize an empty DAG object

Define_sVar: Class for defining and evaluating user-specified summary...

DF.to.long: Convert Data from Wide to Long Format Using 'reshape'

DF.to.longDT: Faster Conversion of Data from Wide to Long Format Using...

distr.list: List All Custom Distribution Functions in 'simcausal'.

doLTCF: Missing Variable Imputation with Last Time Point Value...

eval.target: Evaluate the True Value of the Causal Target Parameter

igraph.to.sparseAdjMat: Convert igraph Network Object into Sparse Adjacency Matrix

N: Subsetting/Indexing 'DAG' Nodes

NetIndClass: R6 class for creating and storing a friend matrix (network...

NetInd.to.sparseAdjMat: Convert Network IDs Matrix into Sparse Adjacency Matrix

net.list: List All Custom Network Generator Functions in 'simcausal'.

network: Define a Network Generator

node: Create Node Object(s)

parents: Show Node Parents Given DAG Object

plotDAG: Plot DAG

plotSurvEst: (EXPERIMENTAL) Plot Discrete Survival Function(s)

print.DAG: Print DAG Object

print.DAG.action: Print Action Object

print.DAG.node: Print DAG.node Object

rbern: Random Sample from Bernoulli Distribution

rcat.b1: Random Sample from Base 1 (rcat.b1) or Base 0 (rcat.b0)...

rcat.factor: Random Sample for a Categorical Factor

rconst: Constant (Degenerate) Distribution (Returns its Own Argument...

rdistr.template: Template for Writing Custom Distribution Functions

rnet.gnm: Call 'igraph::sample_gnm' to Generate Random Graph Object...

rnet.gnp: Call 'igraph::sample_gnp' to Generate Random Graph Object...

rnet.SmWorld: Call 'igraph::sample_smallworld' to Generate Random Graph...

set.DAG: Create and Lock DAG Object

set.targetE: Define Non-Parametric Causal Parameters

set.targetMSM: Define Causal Parameters with a Working Marginal Structural...

sim: Simulate Observed or Full Data from 'DAG' Object

simcausal: Simulating Longitudinal Data with Causal Inference...

simfull: Simulate Full Data (From Action DAG(s))

simobs: Simulate Observed Data

sparseAdjMat.to.igraph: Convert Network from Sparse Adjacency Matrix into igraph...

sparseAdjMat.to.NetInd: Convert Network from Sparse Adjacency Matrix into Network IDs...

vecfun.add: Add Custom Vectorized Functions

vecfun.all.print: Print Names of All Vectorized Functions

vecfun.print: Print Names of Custom Vectorized Functions

vecfun.remove: Remove Custom Vectorized Functions

vecfun.reset: Reset Custom Vectorized Function List

Files in this package

simcausal
simcausal/inst
simcausal/inst/doc
simcausal/inst/doc/simcausal_vignette.R
simcausal/inst/doc/simcausal_vignette.Rnw
simcausal/inst/doc/simcausal_vignette.pdf
simcausal/tests
simcausal/tests/examples
simcausal/tests/examples/sim.impute.examples12.R
simcausal/tests/examples/MSM.examples.R
simcausal/tests/examples/add.action.R
simcausal/tests/examples/set.DAG.R
simcausal/tests/examples/example.simnets.R
simcausal/tests/examples/set.targetE.examples.R
simcausal/tests/RUnit
simcausal/tests/RUnit/RUnit_tests_01_nets.R
simcausal/tests/RUnit/RUnit_tests_00.R
simcausal/tests/RUnit/RUnit_tests_03_NSE_bug.R
simcausal/tests/RUnit/RUnit_tests_02_MV.R
simcausal/tests/test-all.R
simcausal/NAMESPACE
simcausal/NEWS
simcausal/R
simcausal/R/simcausal-package.r
simcausal/R/network.R simcausal/R/network_distributions.R
simcausal/R/simcausal.r
simcausal/R/simulation.r
simcausal/R/node.R simcausal/R/distributions.R simcausal/R/DAG_node_R6.R
simcausal/R/parserfunctions_R6.r
simcausal/R/interface.r
simcausal/R/targetparam.r
simcausal/R/action_node_indexing.R simcausal/R/zzz.R
simcausal/vignettes
simcausal/vignettes/SimCausal_2014.bib
simcausal/vignettes/R-Pckgs.bib
simcausal/vignettes/psi.n.mat.rda
simcausal/vignettes/mystyles.sty
simcausal/vignettes/simcausal_vignette.Rnw
simcausal/vignettes/SimCausal_Networks_2016.bib
simcausal/vignettes/vignette_dat
simcausal/vignettes/vignette_dat/restabwLefSc3_all_1Ksims.Rdata
simcausal/vignettes/vignette_dat/repstudy1_psi0.t0.NP.Rdata
simcausal/vignettes/vignette_dat/sim50K.stratQg.notrunc.missg.Rdata
simcausal/vignettes/vignette_dat/trueMSMreps.sc1.Rdata
simcausal/vignettes/vignette_dat/restabwLefSc1_all_1Ksims.Rdata
simcausal/vignettes/vignette_dat/sim50K.stratQg.notrunc.g.Rdata
simcausal/vignettes/vignette_dat/trueMSMreps.sc3.Rdata
simcausal/vignettes/vignette_dat/restabSc3_all_1Ksims.Rdata
simcausal/vignettes/vignette_dat/restabSc1_all_1Ksims.Rdata
simcausal/vignettes/vignette_dat/repstudy1_psi0.t0.MSM.Rdata
simcausal/README.md
simcausal/MD5
simcausal/build
simcausal/build/vignette.rds
simcausal/DESCRIPTION
simcausal/man
simcausal/man/rnet.gnp.Rd simcausal/man/sparseAdjMat.to.NetInd.Rd simcausal/man/rcat.factor.Rd simcausal/man/simcausal.Rd simcausal/man/rnet.gnm.Rd simcausal/man/rcat.b1.Rd simcausal/man/add.action.Rd simcausal/man/plotSurvEst.Rd simcausal/man/DAG.empty.Rd simcausal/man/Define_sVar.Rd simcausal/man/vecfun.print.Rd simcausal/man/vecfun.reset.Rd simcausal/man/set.DAG.Rd simcausal/man/plotDAG.Rd simcausal/man/print.DAG.node.Rd simcausal/man/rdistr.template.Rd simcausal/man/NetInd.to.sparseAdjMat.Rd simcausal/man/vecfun.all.print.Rd simcausal/man/simfull.Rd simcausal/man/DF.to.longDT.Rd simcausal/man/parents.Rd simcausal/man/add.nodes.Rd simcausal/man/network.Rd simcausal/man/print.DAG.action.Rd simcausal/man/DF.to.long.Rd simcausal/man/N.Rd simcausal/man/doLTCF.Rd simcausal/man/vecfun.remove.Rd simcausal/man/distr.list.Rd simcausal/man/igraph.to.sparseAdjMat.Rd simcausal/man/node.Rd simcausal/man/eval.target.Rd simcausal/man/sparseAdjMat.to.igraph.Rd simcausal/man/vecfun.add.Rd simcausal/man/NetIndClass.Rd simcausal/man/rconst.Rd simcausal/man/set.targetE.Rd simcausal/man/rbern.Rd simcausal/man/simobs.Rd simcausal/man/print.DAG.Rd simcausal/man/set.targetMSM.Rd simcausal/man/net.list.Rd simcausal/man/sim.Rd simcausal/man/rnet.SmWorld.Rd simcausal/man/A.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.