prior.nl {BMAmevt} | R Documentation |
Prior parameter distribution for the NL model
Description
Density and generating function of the prior distribution.
Usage
prior.nl(type = c("r", "d"), n, par, Hpar, log, dimData = 3)
Arguments
type |
One of the character strings |
n |
The number of parameters to be generated. Only used
if |
par |
A vector of length four, with component comprised
between In the NL model,
In the NL model,
|
Hpar |
list of Hyper-parameters : see |
log |
logical. Should the density be returned on the log scale ?
Only used if |
dimData |
The dimension of the sample space, equal to |
Details
The four parameters are independent, the logit-transformed parameters follow a normal distribution.
Value
Either a matrix with n
rows containing a random parameter sample generated under the prior (if type == "d"), or the (log)-density of the parameter par
.
Author(s)
Anne Sabourin
Examples
## Not run: prior.nl(type="r", n=5 ,Hpar=get("nl.Hpar"))
## Not run: prior.trinl(type="r", n=5 ,Hpar=get("nl.Hpar"))
## Not run: prior.pb(type="d", par=rep(0.5,2), Hpar=get("nl.Hpar"))