Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我设法使用完成了一些回归
lm(d$result~d$param1+d$param2) -> model
现在我想用它model来推断(或内插)新数据帧的结果。我该怎么做 ?我确信已经有一个功能。
model
查找?predict.lm。
?predict.lm
如果dat是带有新数据的数据框,predict(model, newdata = dat)
dat
predict(model, newdata = dat)