View source: R/get_att_and_def_terms.R
get_att_and_def_terms | R Documentation |
Get formula
get_att_and_def_terms(predictors, home)
predictors |
character vector with predictor names |
home |
logical indicating if Home variable should be included in attack and defence terms (if so, both attack and defence flags for Arsenal are dropped) |
'get_att_and_def_terms' filters among the predictors such that only Att and Def predictors are used
formula Goals ~ -1 + pred_1 + pred_2 + ... + pred_n
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.