data_to_rsmd: Data format for rsmd 'data_to_rsmd' generates data format...

Description Usage Arguments Value

View source: R/data_to_rsmd.R

Description

Data format for rsmd data_to_rsmd generates data format based on given data.

Usage

1
data_to_rsmd(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 for each system.

Value

A list with the following components:

n

number of systems in the fleet.

n.comp

number of components in the systems.

r

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/rsmd documentation built on May 4, 2020, 4:09 p.m.