Description Usage Arguments Value
View source: R/generate_data.R
generate_data
generates rsmd data set.
1 | generate_data(n.sys, n.comp, m.t, v.t, m.c, v.c, distribution, s.seed)
|
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. |
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.