Skip to content

Access fitted models #416

Answered by nhejazi
lorenzoFabbri asked this question in Q&A
Discussion options

You must be logged in to vote

thanks for the question, @lorenzoFabbri -- the short answer is that the fitted model object is unlikely to be preserved at the level that marginaleffects might require. you'll see just after the line that you point to that the S3 class that glm returns is stripped of much of its contents (https://github.com/tlverse/sl3/blob/devel/R/Lrnr_glm.R#L94-L104). this is done so as to minimize the memory footprint of the fitted model objects (of which there may be very many in a large stack)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nhejazi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants