Using an already created model for scoring a new data set in R
问题 I have built a linear regression i R. Now I wanna store the model and use it for scoring a new data set once a week. Someone that can help me with how to? How to save the model and how to import it and use it on an new dataset. 回答1: You can save the model in a file and load it when you need it. For example, you might have a line like this to train your model: the_model <- glm(my_formula, family=binomial(link='logit'),data=training_set) This model can be saved with: save(file="modelfile",the