Linear regression with the Lin (2013) covariate adjustment

lm_lin(formula, data, covariates, weights, subset, clusters, se_type = NULL,
ci = TRUE, alpha = 0.05, coefficient_name = NULL, return_vcov = TRUE)

## Arguments

formula An object of class "formula", such as Y ~ Z. Should only have the outcome and the treatment. A data.frame. A one-sided formula with all of the covariates on the right hand side, such as ~ x1 + x2 + x3. the bare (unquoted) names of the weights variable in the supplied data. An optional bare (unquoted) expression specifying a subset of observations to be used. An optional bare (unquoted) name of the variable that corresponds to the clusters in the data. The sort of standard error sought. Without clustering: "HC0", "HC1", "HC2" (default), "HC3", or "classical". With clustering: "BM" (default), "stata". A boolean for whether to compute and return pvalues and confidence intervals, TRUE by default. The significance level, 0.05 by default. a character or character vector that indicates which coefficients should be reported. If left unspecified, returns all coefficients. a boolean for whether to return the vcov matrix for later usage, TRUE by default.