Extract the original fitted model object from a zelig estimation

from_zelig_model(obj)

Arguments

obj

a zelig object with an estimated model

Details

Extracts the original fitted model object from a zelig estimation. This can be useful for passing output to non-Zelig post-estimation functions and packages such as texreg and stargazer for creating well-formatted presentation document tables.

Examples

z5 <- zls$new() z5$zelig(Fertility ~ Education, data = swiss) from_zelig_model(z5)
#> #> Call: #> lm(formula = Fertility ~ Education, data = as.data.frame(.)) #> #> Coefficients: #> (Intercept) Education #> 79.610 -0.862 #>