View source: R/function_fordistribution.R
convert.epipara.to.delappara | R Documentation |
This function (i.e., convert.epipara.to.delappara()
) converts a list of pre-defined epidemiological parameters into a list of statistical parameters,
such that a probability function of Delaporte distribution may recognize, which is for internal use only.
convert.epipara.to.delappara(
para = list(mean = 1, disp = 0.5, shift = 0.2),
offspring.type = "D"
)
para |
A list ( |
offspring.type |
A character label (
By default, |
For different values of offspring.type
,
When offspring.type = "D"
, no action to the pre-defined epidemiological parameters;
When offspring.type = "NB"
, we set parameter shift = 0
internally;
When offspring.type = "G"
, we set parameters disp = 1
and shift = 0
internally; and
When offspring.type = "P"
, we set parameters disp = +Inf
and shift = mean
internally.
A list of statistical parameters in the format of list(alpha = ?, beta = ?, lambda = ?)
that can be recognized by Delaporte distribution.
It would be difficult to interpret the converted statistical parameters,
and thus we set this function convert.epipara.to.delappara()
as a internal function.
We do not recommend the users to use this function externally unless for special reasons.
Vose D. Risk analysis: a quantitative guide. John Wiley & Sons. 2008; pp. 618-619. ISBN: 978-0-470-51284-5
Delaporte
for the parameterization of Delaporte distribution.
convert.epipara.to.delappara(
para = list(mean = 1, disp = 0.5, shift = 0.2),
offspring.type = 'D'
)
convert.epipara.to.delappara(
para = list(mean = 1, disp = 1, shift = 0),
offspring.type = 'G'
)
convert.epipara.to.delappara(
para = list(mean = c(0.5, 1, 2), disp = c(0.1, 0.1, 0.3), shift = 0.2)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.