robincar_SL_median.Rd
Estimate treatment-group-specific response means and (optionally) treatment group contrasts using a generalized linear working model. Perform median adjustment to limit randomness induced from cross-fitting.
Number of times to run the robincar_SL function
Seed to set before running the set of functions
A data.frame with the required columns
Name of column in df with treatment variable
Name of the column in df with response variable
Names of columns in df with car_strata variables
Names of columns in df with covariate variables
Name of the type of covariate-adaptive randomization scheme. One of: "simple", "pocock-simon", "biased-coin", "permuted-block".
Whether to include car_strata variables in covariate adjustment. Defaults to F for ANOVA and ANCOVA; defaults to T for ANHECOVA. User may override by passing in this argument.
Vector of super-learner libraries to use for the covariate adjustment (see SuperLearner::listWrappers)
Optional list of super-learner "learners" to use for the covariate adjustment (see SuperLearner::create.Learner())
Number of splits to use in cross-fitting
Level of accuracy to check prediction un-biasedness (in digits).
An optional function to specify a desired contrast
An optional jacobian function for the contrast (otherwise use numerical derivative)
See value of RobinCar::robincar_SL. Attributes `mods` and `mu_as` are lists of `mod` and `mu_a` attributes, respectively, for each replicate of `robincar_SL` used in the median.
*WARNING: This function is still under development and has not been extensively tested.* This function currently only works for two treatment groups. Before using this function, you must load the SuperLearner library with `library(SuperLearner)`, otherwise the function call will fail.