Is there a way to 'compress' an lm() object for later prediction?

前端 未结 3 451
一整个雨季
一整个雨季 2020-12-06 11:45

Is there a way to \'compress\' an object of class lm, so that I can save it to the disk and load it up later for use with predict.lm?

I have an lm object that ends u

3条回答
  •  再見小時候
    2020-12-06 12:09

    Turns out I solved my own problem. Using the following:

    model<-lm(form,data=ct,model=FALSE,x=FALSE,y=FALSE)
    

    reduced the size of my model substantially.

提交回复
热议问题