0

I managed to get some regression done using

lm(d$result~d$param1+d$param2) -> model

Now I would like to use model to extrapolate (or interpolate) the result for a new dataframe. How can I do it ? I'm sure there is already a function for that.

Paul Floyd
  • 5,530
  • 5
  • 29
  • 43
mb14
  • 22,276
  • 7
  • 60
  • 102

1 Answers1

1

Lookup ?predict.lm.

If dat is a data frame with new data, predict(model, newdata = dat)

Whitebeard
  • 5,945
  • 5
  • 24
  • 31