Learn R Programming

Zelig (version 5.1.7)

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.

Examples

Run this code
# NOT RUN {
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()

# }

Run the code above in your browser using DataLab