View source: R/resamp_define.R
define_psa | R Documentation |
Define the properties of parameter distributions and their correlation structure for probabilistic uncertainty analysis of Markov models.
define_psa(..., correlation)
define_psa_(.dots = list(), correlation)
... |
Formulas defining parameter distributions. |
correlation |
A correlation matrix for parameters or
the output of |
.dots |
Pair/values of expressions coercible to quosures. |
The distributions must be defined within heemod
(see distributions), or defined with
define_distribution()
.
If no correlation matrix is specified parameters are assumed to be independant.
The correlation matrix need only be specified for correlated parameters.
An object of class resamp_definition
.
Contains list_qdist
, a list of quantile
functions and correlation
a correlation matrix.
mc <- define_correlation(
age_init, cost_init, .4
)
define_psa(
age_init ~ normal(60, 10),
cost_init ~ normal(1000, 100),
correlation = mc
)
# example with multinomial parameters
define_psa(
rate1 + rate2 + rate3 ~ multinomial(10, 50, 40),
a + b ~ multinomial(15, 30)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.