View source: R/presDeadsurvdat.R
presDeadsurvdat | R Documentation |
presDeadsurvdat
returns a matrix of all of the estimated death times for each animal in the model
presDeadsurvdat(events, dcut, newDeadtimes)
events |
A data frame of the entanglement data: timing, severity, etc. |
dcut |
An numerical index between 1 and |
newDeadtimes |
a named vector of estimated death times. This is used to update the events data, so that new survival information can be calculated. |
This is a function that will build an object to be used in the construction of the Kaplan-Meier survival curves for right whales. The idea behind this is to loop over each animal that is presumed dead and calculate the necessary informaiton for the survival curve plotting.
It will take in a new vector of death times (newDeadtimes
), and replace the median
death times in events
with the newly sampled ones.
The output will be a data frame of survival information based on the imputed death times.
## Not run: presDeadsurvdat(events, dcut, newDeadtimes) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.