Created
January 6, 2016 20:33
-
-
Save daynebatten/52e0f9c7ecc5c774d7cb 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
# Function to get hazard ratio for males vs. baseline at any given time | |
y = function(x) exp(-.4667783 - .0008827 * x) | |
# Plot it | |
plot(y, ylim=c(0,1), xlim=c(0,1000), xlab = 'Time', ylab = 'Hazard Ratio') | |
title('Hazard Ratio for Male') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment