getr | R Documentation |
r
When applied to a bdm
class object the function uses regular expression matching to extract log-normal distribution parameters for r
from the model code.
getr(object, ...)
## S3 method for class 'bdm'
getr(object, ...)
object |
an object of the appropriate class |
... |
additional arguments to generic function |
By default the bdm package assumes that the prior on intrinsic growth rate can be described by a log-normal distribution with parameters \mu
and \sigma
, which correspond to the mean and standard deviation of \ln(r)
.
A list containing the elements 'E[log(r)]'
(equal to \mu
), 'SD[log(r)]'
(equal to \sigma
), 'E[r]'
, 'VAR[r]'
and 'CV[r]'
.
# default model
mdl <- bdm()
# extract r from
# bdm object
getr(mdl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.