Description Usage Arguments Value
View source: R/data_to_srplv.R
Data format for srplv
data_to_srplv
converts the dataset to the srplv layout.
1 | data_to_srplv(data, sys.col, time.col, status.col, n.comp)
|
data |
a data frame with three columns, recording the system ID, time and status. |
sys.col |
the index containing the system ID. |
time.col |
the index containing the event times and end-of-observation times. |
status.col |
the index containing censoring or failure status. |
n.comp |
the number of components. |
A list with the following components:
n |
the number of systems in the fleet. |
n.comp |
the number of components in the systems. |
r |
a vector containing the number of failures for each system in the fleet. |
time |
a list containing the failure time for each system. |
cens |
a vector that records the end-of-observation time for each system. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.