dplateau | R Documentation |
dplateaumags
and rplateaumags
provide the required information for
defining the distribution for the magnitude of ascending and descending plateau magnitude
coefficients. dplateaumags
defines the probability density function and
rplateaumags
defines a function for generating random samples from this distribution.
They can be used directly from R or in nimble
models.
dplateaumags(x, prec, rho, log = 0)
rplateaumags(n, prec, rho)
x |
Numeric vector of length 2 with the first element containing the value of the ascending magnitude coefficient and the second element containing the value of the descending magnitude coefficient |
prec |
Scalar double containing the precision hyperparameter to control the scale of the magnitude coefficients |
rho |
Scalar double containing the correlation coefficient of the ascending and descending magnitude coefficients |
log |
Logical scalar which if |
n |
Number of random draws. Currently only |
For dplateaumags
the probability density (on the log or natural scale
depending on the value used for log
) is return as a numeric scalar. For
rplateaumags
a vector of length two is returned with the first element containing
the magnitude coefficient for the ascending portion and the second element containing the
magnitude coefficient for the descending portion.
Joseph D. Chipperfield, joechip90@googlemail.com
h.plateau
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.