This function is to be passed into geex::m_estimate
1 2 | eeFunTV_IPTW(data, trt_model_obj, num_fixefs, var_names, alpha,
x_levels = NULL, integrate_alphas, randomization_probability, weight_type)
|
data |
the dataframe. Will be coerced from "tbl_df" to data.frame. |
trt_model_obj |
The fitted model object (usually a glm). |
num_fixefs |
Number of fixed effect parameters from treatment model. Perhaps unncessaary coding. |
var_names |
A list of names for outcome, treatment, clustering, and perhaps participation. |
alpha |
One of the allocations at a time |
x_levels |
default NULL unless there are factos in design matrix. From
|
integrate_alphas |
true |
randomization_probability |
usually 1. e.g. 2/3 in Perez-Heydrich et al. (2014) Biometrics |
weight_type |
Estimators as presented in Liu, Hudgens, and Becker-Dreps
(2016) Biometrika. Select |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.