title: How do I extract hazards from survfit in R?
body: <p>I have a <code>survfit</code> object. A summary survfit for my <code>t=0:50</code> years of interest is easy enough.</p>
  
  <pre><code>summary(survfit, t=0:50)
  </code></pre>
  
  <p>It gives the survival at each t.</p>
  
  <p>Is there a way to get the hazard for each t (in this case, the hazard from t-1 to t in each t=0:50)? I want to get the mean and confidence interval (or standard error) for the hazards relating to the Kaplan Meier curve.</p>
  
  <p>This seems easy to do when a distribution is fit (eg. <code>type="hazard"</code> in <code>flexsurvreg</code>) but I can't figure out how to do this for a regular survfit object. Suggestions? </p>