Using lme
function, I fitted a model on a large data set with near 470K observations and about 40 variables. The size of this fit (object.size(fit)
) is near 300 Mb, which is not feasible to store in a server. The goal is to let a user to interactively define a newdata
(which has a maximum of 500 observations) and then call predict(fit, newdata, level = 0, na.action = na.omit)
to output the predicted values. The question is how I can reduce the size of the fit
given a limited storage space in the server?
Have already tried a couple of ways in this post but it does not shrink the size down to what I really need.
Any thought? Thanks!