View source: R/igp_simulation.R
| sim_igp | R Documentation |
Simulates longitudinal degradation measurements for multiple units under classical IGP, IGP-Gamma frailty, or IGP-IG frailty models.
sim_igp(
n = 10,
times = seq(0, 4, by = 0.25),
theta = 2,
eta = 15,
xi = 0.2,
frailty = c("none", "gamma", "ig"),
mean_fun = "linear",
seed = NULL
)
n |
Integer specifying the number of experimental units to simulate. |
times |
Numeric vector of inspection times (e.g. |
theta |
Mean parameter |
eta |
Precision/scale parameter |
xi |
Frailty variance parameter |
frailty |
Frailty specification: |
mean_fun |
Mean degradation function |
seed |
Optional integer random seed for reproducibility. |
A data frame containing simulated degradation paths:
Integer unit identifier (1 to n).
Inspection time.
Simulated degradation increment \Delta D(t).
Simulated cumulative degradation D(t).
Realized individual frailty multiplier z_i for unit i.
Morita, L. H. M., Tomazella, V. L. D., Balakrishnan, N., Ramos, P. L., Ferreira, P. H., & Louzada, F. (2021). Inverse Gaussian process model with frailty term in reliability analysis. Quality and Reliability Engineering International, 37(2), 763-784. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1002/qre.2762")}.
igp_fit, lifetime_dist
set.seed(42)
sim_data <- sim_igp(n = 5, times = seq(0, 2, by = 0.5), theta = 1.5,
eta = 10, xi = 0.3, frailty = "gamma")
head(sim_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.