data_to_srplv: Data format for srplv 'data_to_srplv' converts the dataset to...

Description Usage Arguments Value

View source: R/data_to_srplv.R

Description

Data format for srplv data_to_srplv converts the dataset to the srplv layout.

Usage

1
data_to_srplv(data, sys.col, time.col, status.col, n.comp)

Arguments

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.

Value

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.


agathasr/srplv documentation built on May 17, 2020, 12:21 a.m.