input_example: Make an input example for gmethods package

Description Usage Value Examples

View source: R/input_example-function.R

Description

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.

Usage

1

Value

output A list of a formula and a data frame with dimension of 1629 rows and 10 columns.

Examples

1
2
3
4
# Load example data for formula and data
input=input_example()
formula=input$formula
data=input$data

herdiantrisufriyana/gmethods documentation built on Feb. 20, 2021, 3:25 a.m.