Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce the size model objects from lfe::felm() #141

Open
jyuu opened this issue Nov 6, 2019 · 1 comment
Open

Reduce the size model objects from lfe::felm() #141

jyuu opened this issue Nov 6, 2019 · 1 comment
Labels
feature a feature request or enhancement

Comments

@jyuu
Copy link
Collaborator

jyuu commented Nov 6, 2019

Code to reduce the size of a model object from lfe::felm():

small_felm <- function(m){
m$fe <- NULL
m$residuals <- NULL
m$r.residuals <- NULL
m$fitted.values <- NULL
m$response <- NULL
m$cfactor <- NULL
m$inv <- NULL
m$STATS$promotion <- NULL
m$clustervar <- NULL
m
}

Thanks to @adamlauretig

@adamlauretig
Copy link

Just a note, you'll probably want to pass keepX = FALSE, keepCX = FALSE to the felm when you're fitting the model, if possible.

@juliasilge juliasilge added the feature a feature request or enhancement label Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants