init_params | R Documentation |

This function is required to be run first before any other function can run. This will set within the package the global outcome, treatment, and covariate functions for each model to use.

init_params(outcome, treatment, covariates, data, simple = FALSE)

`outcome` |
the outcome variable of interest (must be continuous). |

`treatment` |
the treatment with the causal effect of interest on the outcome. |

`covariates` |
a list/vector of covariate names to be use for confounding adjustment. |

`data` |
a data frame containing the variables in the model. |

`simple` |
a boolean indicator to build default formula with interactions. If true, interactions will be excluded. If false, interactions will be included. By default, simple is set to false. |

No return value. Called for parameter initialization.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.