This file contains hidden or 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
| # Downlad data | |
| download.file("https://github.com/cran/pscl/raw/master/vignettes/DebTrivedi.rda", destfile = "DebTrivedi.rda") | |
| load(file="DebTrivedi.rda") | |
| df = DebTrivedi[, c(1, 6:8, 13, 15, 18)] | |
| # this is some data about the number of outpatient appointments attended by | |
| # people in the US (it's from the pscl vignette) | |
| # it doesn't really matter what this data is, just that it has a zero | |
| # inflated count outcome. |