
Takes a string including potentially model terms like *
and :
and
extracts out the individual variables
extract_covariates(x)
string of variable names potentially including interaction terms
i.e. c("v1", "v2", "v2*v3", "v1:v2")
becomes c("v1", "v2", "v3")