prepare_indiv_life_times: Life time prepare

Description Usage Arguments Details Value

View source: R/prepares_indiv_life_times.R

Description

Preprares life times of one individual

Usage

1
2
prepare_indiv_life_times(data, indiv_col = "indiv",
  obs_time_col = "obs_time", status_col = "status")

Arguments

data:

A data.frame

indiv_col:

column containing the identification of the individual.

obs_time_col:

Observed time of the event

status_col:

Event (O suspension, 1 "death")

Details

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.

Value

A data.frame appropriately prepared for reliability analysis.


leonardommarques/reliabilitytools documentation built on Aug. 1, 2019, 8:03 p.m.