Skip to content

Instantly share code, notes, and snippets.

@christophergandrud
Created January 19, 2017 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christophergandrud/a94667f387228e3eceb98652b791f5bc to your computer and use it in GitHub Desktop.
Save christophergandrud/a94667f387228e3eceb98652b791f5bc to your computer and use it in GitHub Desktop.
# Initialize Zelig5 least squares object
z5 <- zls$new()
# Estimate ls model
z5$zelig(Fertility ~ Education, data = swiss)
# Simulate quantities of interest
z5$sim()
# Plot quantities of interest
z5$graph()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment