Description Usage Arguments Details Value References Examples
This function can be used to demonstrate the bias and coverage of the estimators in the ccmean function
1 2 | simCostData(n = 100, dist = "unif", censor = "light",
cdist = "exp", L = 10)
|
n |
Number of individuals to simulate |
dist |
Survival distribution either "unif" = unif(0,10) o r "exp" = exp (1/6) |
censor |
Censoring "light" ~ 25% or "heavy" ~ 40%, changes a bit depending on cdist |
cdist |
Distribution used to censor, "exp" exponential or "unif" uniform |
L |
Number of years to summarize over |
The function simulates survival times from either an uniform distribution or an exponential distribution, and a cost history. There are two options for censoring, heavy (~40 light (~25
Simulation of censored cost
Lin1997ccostr
1 2 3 | # The simulated data can be used to show how the estimators perform
simCostData(n = 100, dist = "unif", censor = "light", cdist = "exp", L = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.