generate_data: Data generation of Repairable System with Masked Data (rsmd)

Description Usage Arguments Value

View source: R/generate_data.R

Description

generate_data generates rsmd data set.

Usage

1
generate_data(n.sys, n.comp, m.t, v.t, m.c, v.c, distribution, s.seed)

Arguments

n.sys

The number of systems.

n.comp

The number of sockets for each system.

m.t

The expected failure time of components.

v.t

The variance of failure time of components .

m.c

The expected failure time of censor (end observation time).

v.c

The variance of failure time of censor (end observation time).

distribution

The chose distribution: weibull, gamma, lnorm, llogis.

s.seed

The seed for data generation.

Value

A list with the following components:

n

number of systems in the fleet.

n.comp

number of sockets in each system.

r

a vector with a length n, records the number of failures for each system.

time

a list that each vector records the failure times of each system.

cens

a vector with a length n, records the end-of-observation time for each system.

par.t

a vector with parameters of components failure times distribution.

par.c

a vector with parameters of censor distribution.

delta.true

a list that each vector records the socket index failure indicator of each system.


agathasr/rsmd documentation built on May 4, 2020, 4:09 p.m.