powered by
Covariate adjusted lm model
robin_lm( formula, data, treatment, vcov = "vcovG", vcov_args = list(), pair, ... )
A treatment_effect object.
(formula) A formula of analysis.
formula
(data.frame) Input data frame.
data.frame
(formula or character(1)) A formula of treatment assignment or assignment by stratification, or a string name of treatment assignment.
character(1)
(function) A function to calculate the variance-covariance matrix of the treatment effect, including vcovHC and vcovG. The default is 'vcovG'.
function
vcovHC
vcovG
(list) Additional arguments passed to vcov.
list
vcov
Pairwise treatment comparison.
Additional arguments passed to lm.
lm
robin_lm( y ~ treatment * s1, data = dummy_data, treatment = treatment ~ s1 )
Run the code above in your browser using DataLab