ck37 / varimpact

Variable importance through targeted causal inference, with Alan Hubbard
57 stars 13 forks source link

Single column in data #6

Open ck37 opened 6 years ago

ck37 commented 6 years ago

Via Stephanie Leonard, if there is a single variable in our X we get an error:

Error: invalid 'type' (list) of argument

We should 1) give a warning or error when a single variable is used, and eventually 2) support a single X variable (for consistency).

We also should check if X is a vector, and if so convert to a dataframe or matrix.