View source: R/pmcmc_parameters.R
pmcmc_parameter | R Documentation |
Describe a single parameter for use within the pmcmc. Note that
the name is not set here, but will end up being naturally defined
when used with pmcmc_parameters
, which collects
these together for use with pmcmc()
.
pmcmc_parameter(
name,
initial,
min = -Inf,
max = Inf,
discrete,
integer = FALSE,
prior = NULL,
mean = NULL
)
name |
Name for the parameter (a string) |
initial |
Initial value for the parameter |
min |
Optional minimum value for the parameter (otherwise
|
max |
Optional max value for the parameter (otherwise
|
discrete |
Deprecated; use |
integer |
Logical, indicating if this parameter is
integer. If |
prior |
A prior function (if not given an improper flat prior
is used - be careful!). It must be a function that takes a
single argument, being the value of this parameter. If given,
then |
mean |
Optionally, an estimate of the mean of the
parameter. If not given, then we assume that |
pmcmc_parameter("a", 0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.