Add info about component cause of failure to a masked data frame with latent components available. This is normally only posible in a simulation setting, where we know the true component cause of failure, although such information may also be carefully gathered in a real-world setting.

md_decorate_component_cause_k(df, comp = "t")

Arguments

df

masked data frame

comp

column prefix for component lifetimes, defaults to t,

Value

a data frame with a new k column