to_zelig | R Documentation |
Coerce a non-Zelig fitted model object to a Zelig class object
to_zelig(obj)
obj |
a fitted model object fitted using |
Christopher Gandrud and Ista Zhan
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.