Last active
January 19, 2017 17:28
-
-
Save christophergandrud/98fbd27cb25312985732c0bd4994a81d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Estimate ls model | |
z4 <- zelig(Fertility ~ Education, data = swiss, model = 'ls') | |
# Set Eductation to 5 and 15 | |
z4_set_low <- setx(z4, Education = 5) | |
z4_set_high <- setx(z4, Education = 15) | |
# Simulate results | |
z4_sim <- sim(z4, x = z4_set_low, x1 = z4_set_high) | |
# Plot simulated quantities of interest | |
plot(z4_sim) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment