-
-
Save eliasah/1a9102a151d3d08669299e9a5c95af41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
strip_glm <- function(cm) { | |
cm$y = c() | |
cm$model = c() | |
cm$residuals = c() | |
cm$fitted.values = c() | |
cm$effects = c() | |
cm$qr$qr = c() | |
cm$linear.predictors = c() | |
cm$weights = c() | |
cm$prior.weights = c() | |
cm$data = c() | |
cm$family$variance = c() | |
cm$family$dev.resids = c() | |
cm$family$aic = c() | |
cm$family$validmu = c() | |
cm$family$simulate = c() | |
attr(cm$terms,".Environment") = c() | |
attr(cm$formula,".Environment") = c() | |
cm | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment