View source: R/make_formulas.R
make_formula | R Documentation |
m_f
simply collapses lists into a formula notation and makes it a formula
make_formula
does something similar but in a more sophisticated way. using the 'reformulate' function. We use this in predictive modeling
make_formula_df
attatches thi formula to a tibble (multiple) data frames?
wdwd
is a function that...Making formulas
m_f
simply collapses lists into a formula notation and makes it a formula
make_formula
does something similar but in a more sophisticated way. using the 'reformulate' function. We use this in predictive modeling
make_formula_df
attatches thi formula to a tibble (multiple) data frames?
wdwd
is a function that...
make_formula(lhs, rhs)
Requires stats package
t0_satis_vars <- c("age_approx", "d_male", "d_student", "not_just_white", "d_live_usa", "years_involved_norm") sat_outcome <- "as.factor(satisfaction_ideal)" eas_20 %>% MASS::polr(m_f(sat_outcome, t0_satis_vars), data = ., Hess=TRUE) control_vars <- c("ln_years_involved", "year_f", "age" showup_f <- make_formula("showup", control_vars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.