How can I save the results of a regression (say a
LinearModel from GLM.jl) without the data that are stored inside the object?
I run several regressions using GLM.jl. At some point after all the results are in, some of the regressions are combined into tables (perhaps using RegressionTables.jl). Until I know exactly how I want to display the results, I want to store the each regression in a file.
- Delete the data inside the
Drawback: this would depend on the undocumented internal structure of the object, which could change at any time.
- Save only the information that I want to display in a custom object.
Drawback: RegressionTables.jl (and probably other packages) expect a
LinearModelas input. So I would not be able to use those.
Are there better options?