Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

to_zelig

Coerce a non-Zelig fitted model object to a Zelig class object


Description

Coerce a non-Zelig fitted model object to a Zelig class object

Usage

to_zelig(obj)

Arguments

obj

a fitted model object fitted using lm and many using glm. Note: more intended in future Zelig releases.

Author(s)

Christopher Gandrud and Ista Zhan

Examples

library(dplyr)
lm.out <- lm(Fertility ~ Education, data = swiss)

z.out <- to_zelig(lm.out)

# to_zelig called from within setx
setx(z.out) %>% sim() %>% plot()

Zelig

Everyone's Statistical Software

v5.1.7
GPL (>= 3)
Authors
Christine Choirat [aut], Christopher Gandrud [aut], James Honaker [aut], Kosuke Imai [aut], Gary King [aut], Olivia Lau [aut], Robert Treacy [aut, cre], IQSS Harvard University [cph]
Initial release
2020-12-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.