Skip to content

Instantly share code, notes, and snippets.

@daynebatten
Created March 6, 2015 18:38
Show Gist options
  • Select an option

  • Save daynebatten/f20a6a23d7eca70e5da8 to your computer and use it in GitHub Desktop.

Select an option

Save daynebatten/f20a6a23d7eca70e5da8 to your computer and use it in GitHub Desktop.
# 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