selbias_premodel: Modify the outcome and prepare data for modeling based on...

View source: R/selection-bias-methods.R

selbias_premodelR Documentation

Modify the outcome and prepare data for modeling based on model type

Description

modifies the outcome with bias from trend and unemployemnt rate; if autoregressive run, also adds a lag of the crude rate that is newly derived from modified deaths if using deaths as outcome. Calculates some balance information that is passed along to later steps.

Usage

selbias_premodel(model_simulation)

aescherling/optic-core documentation built on June 15, 2022, 4:56 a.m.