selbias_sample: perform sampling and coding of treatment for selection bias...

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

selbias_sampleR Documentation

perform sampling and coding of treatment for selection bias simulations

Description

uses values of b0, b1, b2 to sample treated units based on values of two covariates (here moving average and unemployment rate) to induce confounding (selection) bias. Once treated units are identified, codes level and change version of treatment that are used in various modeling approaches later on.

Usage

selbias_sample(single_simulation)

Arguments

single_simulation

object created from SimConfig$setup_single_simulation()


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