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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -