Description Usage Arguments Details Value
View source: R/prepares_indiv_life_times.R
Preprares life times of one individual
1 2 | prepare_indiv_life_times(data, indiv_col = "indiv",
obs_time_col = "obs_time", status_col = "status")
|
data: |
A |
indiv_col: |
column containing the identification of the individual. |
obs_time_col: |
Observed time of the event |
status_col: |
Event (O suspension, 1 "death") |
The codes gets the registered times and status and transforms them into life data. Especifications: -If the longest time is a failure there is no need to take suspenstions into account. -Only the longest observed suspension has to be considered. -Lifetimes equal to Zero will no be considered: +If an individual has failed from two causes at the same time there will be tied events. This will lead to events with liefetime equal to Zero, which can not be considered for the survival computations +Failures occouring at time Zero can not be considered for the survival calculations nor the failure cause table.
A data.frame
appropriately prepared for reliability analysis.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.