Description Usage Value Examples
View source: R/input_example-function.R
This function load a causal model as formula object and a data frame of nhefs table, a cleaned version of NHEFS data. In Causal Inference: What If book by Hernán and Robins, four NHEFS datasets are described in this book (https://www.hsph.harvard.edu/miguel-hernan/causal-inference-book/). The remaining datasets from that book could be retrieve from cidata R package (https://github.com/malcolmbarrett/cidata) for more information.
1 |
output A list of a formula and a data frame with dimension of 1629 rows and 10 columns.
1 2 3 4 | # Load example data for formula and data
input=input_example()
formula=input$formula
data=input$data
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.