Skip to content

Instantly share code, notes, and snippets.

@statwonk
Created March 9, 2014 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save statwonk/9450725 to your computer and use it in GitHub Desktop.
Save statwonk/9450725 to your computer and use it in GitHub Desktop.
library(muhaz)
fit2 <- muhaz(df$days_to_capture,
df$censor,
bw.method = "knn")
plot(fit2, xlim = c(0, 365.25),
ylab = "Hazard Rate",
xlab = "Days from being added to the list")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment