You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
just wondering how easy it would be to allow prediction_breakdown to work with a linear model when you use a spline term in the predictor. Here is my example:
Error in `[.data.frame`(new_observation, colnames(ny)) :
undefined columns selected
I guess I could take the ns part out and use the generated basis function, but it would be convenient if you didn't have to do this, particularly if you wanted to compare, eg, models with different basis functions.
Robert
The text was updated successfully, but these errors were encountered:
Thanks,
It is a general issue how to handle variable transformations specified in the model formula
In the first step I will add support for the recipe package, as it allows for tracking of variable preprocessing steps.
Currently the dirty trick would be to call model.matrix directly to generate a data with new variables, but I will work on something more convenient.
Hi,
just wondering how easy it would be to allow
prediction_breakdown
to work with a linear model when you use a spline term in the predictor. Here is my example:Gives the error:
I guess I could take the
ns
part out and use the generated basis function, but it would be convenient if you didn't have to do this, particularly if you wanted to compare, eg, models with different basis functions.Robert
The text was updated successfully, but these errors were encountered: