r - Rename model terms in lm object for forecasting -
i have regression models fitted on data want use forecasting, column names in training data , forecast data different. typical approach rename columns same in both datasets. however, i'm wondering if there way can instead directly modify names of terms in fitted lm object, example term x1
can renamed x2
, can run predict(model, data)
data
has column called x2
in it.
Comments
Post a Comment