rcp | R Documentation |
Simulate parameters from a cpm
model object, and
format them as either type "survreg"
or "ppersist"
rcp(n, model, type = "survreg")
n |
the number of simulation draws |
model |
A |
type |
The type of parameters requested. |
list of two matrices of n
simulated l
and s
(if type = "survreg"
) or a
and b
(if type =
"ppersist"
)for cells defined by the model
object.
data(wind_RP)
mod <- cpm(formula_l = l ~ 1, data = wind_RP$CP, left = "LastPresent",
right = "FirstAbsent"
)
rcp(n = 10, model = mod, type = "survreg")
rcp(n = 10, model = mod, type = "ppersist")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.