controlExtractor | R Documentation |
Extracts the control variable names and coefficients from a model summary.
controlExtractor(model, x, feols_model = F)
model |
A model summary object. |
x |
A string containing the independent variable name. |
feols_model |
An indicator for whether 'model' is a 'fixest::feols()' model. Defaults to 'FALSE'. |
A dataframe with two columns, 'term' contains the name of the control and 'coef' contains the coefficient estimate.
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");
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.