fitModel: Estimate the treatment model parameters.

Description Usage Arguments

Description

Output of this function will be handled by getModel

Usage

1
fitModel(data, modeling_formula, model_options, model_method)

Arguments

data

the dataframe. Will be coerced from "tbl_df" to data.frame.

modeling_formula

This is just the 'inner' part of the multi-part formula for estimating treatment on predictors.

When model_method = "oracle" see prepareOracle.

@return trt_model_obj.

@export

model_options

passed to glmer or perhaps glm(in future).

model_method

"glm" for logistic, "glmer" for logistic with single random intercept. "oracle" supported; see interference for syntax.


BarkleyBG/stabilizedinterference documentation built on May 23, 2019, 8:37 a.m.