make_formula: Making formulas 'm_f' simply collapses lists into a formula...

View source: R/make_formulas.R

make_formulaR Documentation

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...

Description

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...

Usage

make_formula(lhs, rhs)

Details

Requires stats package

Examples

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)


rethinkpriorities/rp-r-package documentation built on Jan. 7, 2023, 10:11 p.m.