get_att_and_def_terms: Get formula

View source: R/get_att_and_def_terms.R

get_att_and_def_termsR Documentation

Get formula

Description

Get formula

Usage

get_att_and_def_terms(predictors, home)

Arguments

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)

Details

'get_att_and_def_terms' filters among the predictors such that only Att and Def predictors are used

Value

formula Goals ~ -1 + pred_1 + pred_2 + ... + pred_n


kristian-bak/football documentation built on Oct. 8, 2022, 2:11 p.m.