View source: R/calcpresdSurvdat.R
calcpresdSurvdat | R Documentation |
Goal of this is to ingest the events
data frame and the output
from calckdpaSurvdat()
to make one list that can be used
to calculate survivorship. The first element of this list will be
the presumed Alive and known Dead animals. All other elements will contain
the presumed dead animals. The goal of this structure was to be able
to
calcpresdSurvdat(events, kdpasurvldf)
|
a data frame of the last entanglement event for individual whales. |
|
a data frame output from the
|
survdf
a many by 10 stacked data frame containing the
information needed to calculate survivorship (Done in another function).
Numerical identifier of the individual whale
Integer noting the death month of the animal, i.e. the median month it was estimated to die in
Logical indicating whether or not the animal was
censored at dcut
Integer indicating the integer time for dcut
Integer noting the length of time between the end
of the entanglement window and the deathMonth
Integer noting the maximum of survTime0
Integer indicating number of months between
the end of the entanglement and the censoring month
(censMonth
)
Character describing the severity of the entanglement injury. Ordinal values include: minor, moderate, and severe
Integer denoting our numerical representation of the entanglement injury and whether or not the injury includes gear
Logical indicating whether or not the animal is known to have died
## Not run: calcpresdSurvdat(events, kdpasurvldf) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.