to_zelig: Coerce a non-Zelig fitted model object to a Zelig class...

Description Usage Arguments Author(s) Examples

View source: R/interface.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
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 documentation built on Jan. 8, 2021, 2:26 a.m.