comb_regr | R Documentation |
This function is just a convenient way to estimate an OLS model from a data frame where the first variable is the dependent one of the model and the remaining are the regressors. This function is used internally by other functions.
comb_regr(df)
df |
A data frame or a tibble. First column of the data frame must be the |
An object of class lm
.
coreinf_br %>%
dplyr::select(ipca, ipcams) %>%
comb_regr()
coreinf_br %>%
dplyr::select(ipca, ipcadp) %>%
dplyr::mutate(`ipca(-1)` = dplyr::lag(ipca)) %>%
comb_regr()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.