Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save daynebatten/5b4096efc9ba7428b294 to your computer and use it in GitHub Desktop.
# Load the pseudo library
library(pseudo)
# Read in the data
netlixx_pseudo <- read.csv('C:/Users/dbatten/Desktop/NetLixxCox.csv')
# Create pseudo observations using 365-day RMST
netlixx_pseudo$pseudos <- pseudomean(netlixx_pseudo$followtime, netlixx_pseudo$churn, 365)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment