powered by
Extracts the control variable names and coefficients from a model summary.
controlExtractor(model, x, feols_model = F)
A dataframe with two columns, `term` contains the name of the control and `coef` contains the coefficient estimate.
A model summary object.
A string containing the independent variable name.
An indicator for whether `model` is a `fixest::feols()` model. Defaults to `FALSE`.
m <- summary(lm(Salnty ~ STheta + T_degC, bottles)) controlExtractor(model = m, x = "STheta"); m <- summary(lm(Salnty ~ STheta*T_degC + O2Sat, bottles)) controlExtractor(model = m, x = "STheta");
Run the code above in your browser using DataLab