phi | R Documentation |
Calculating the probability density function of the sampling probabilitie(s) y assuming a beta distribution or a uniform distribution from a to b.
phi(beta = FALSE, unif = FALSE)
beta |
Logical. If TRUE, a beta distribution is assumed on the sampling probabilitie(s) y. |
unif |
Logical. If TRUE, a uniform distribution from a to b is assumed on the sampling probabilitie(s) y. |
This function is a closure. This functions takes beta
and unif
as arguments and creates another function with arguments x
, a
and b
.
Returns an object of class "function"
. This function takes the following arguments and will return the probability density of the sampling probabilitie(s) y assuming a beta distribution or a uniform distribution from a to b:
Numeric vector. The value of the sampling probabilitie(s) y.
Numeric. The value of α or a respectively for the beta or the uniform distribution. This value cannot be negative for both distributions and cannnot exceed b for the uniform distribution.
Numeric. The value of β or b respectively for the beta or the uniform distribution. This value cannot be negative for both distributions, cannnot be inferior to a and cannot exceed 1 for the uniform distribution.
Sophia Lambert
likelihood_bdRho
, fitMCMC_bdRho
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.