Masked data generation for series system lifetime data
Source:R/md_series_lifetime.R
md_series_lifetime_right_censoring.RdGenerates right-censored system failure times and right-censoring indicators for a series system with the given data frame of component lifetimes.
Usage
md_series_lifetime_right_censoring(
df,
tau = Inf,
comp = "t",
lifetime = "t",
right_censoring_indicator = "delta"
)Arguments
- df
a data frame with the indicated component lifetimes
- tau
vector of right-censoring times, defaults to
Inf(no right censoring)- comp
component lifetime prefix variable name, defaults to
t, e.g.,t1, t2, t3.- lifetime
system lifetime variable name, defaults to
t- right_censoring_indicator
right-censoring indicator variable, defaults to
delta