robincar_glm2.Rd
Covariate adjustment using generalized linear working model, with simplified interface.
robincar_glm2(
df,
treat_col,
response_col,
formula = NULL,
car_strata_cols = NULL,
car_scheme = "simple",
g_family = stats::gaussian,
g_accuracy = 7,
contrast_h = NULL,
contrast_dh = NULL
)
A data.frame with the required columns
Name of column in df with treatment variable
Name of the column in df with response variable
The formula to use for adjustment specified using as.formula("..."). This overrides car_strata_cols and covariate_cols.
Names of columns in df with car_strata variables
Name of the type of covariate-adaptive randomization scheme. One of: "simple", "pocock-simon", "biased-coin", "permuted-block".
Family that would be supplied to glm(...), e.g., binomial. If no link specified, will use default link, like behavior in glm. If you wish to use a negative binomial working model with an unknown dispersion parameter, then use `g_family="nb"`.
Level of accuracy to check prediction un-biasedness.
An optional function to specify a desired contrast
An optional jacobian function for the contrast (otherwise use numerical derivative)