Created
March 6, 2015 18:38
-
-
Save daynebatten/f20a6a23d7eca70e5da8 to your computer and use it in GitHub Desktop.
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
| # Load the geepack library | |
| library(geepack) | |
| # Add an ID to each observation, since it's required by the geese function | |
| n <- length(netlixx_pseudo$time) | |
| netlixx_pseudo <- data.frame(netlixx_pseudo, id = 1:n) | |
| # Fit a regression model | |
| summary(fit <- geese(pseudos ~ female + age + coupon, | |
| data = netlixx_pseudo, id = id, jack = TRUE, family = gaussian, | |
| corstr = "independence", scale.fix = FALSE)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment