Description Usage Arguments Details Value Examples
Calculates the mean log probability of a vector of i.i.d. 1-d Hurdle random variables under the abk parametrization.
1 | log_dhurdle1d_abk(V, Y, a, b, k)
|
V |
A logical vector, indicating if each entry in |
Y |
A numerical vector of i.i.d. 1-d Hurdle random variables. |
a |
A number, the |
b |
A number, the |
k |
A number, the |
The log probability of a sample y
from the 1-d Hurdle model with abk parametrization with respect to the sum of the Lebesgue measure and a point mass at 0 is
a*v+b*y-y^2*k/2-log(1+sqrt(2pi/k)*exp(a+b^2/(2k)))
where v = (y != 0)
. The function calculates the mean of log probabilities over a vector of i.i.d samples.
A number, the mean log probability.
1 2 | y <- rhurdle1d_abk(n=100, a=1, b=2, k=3)
log_dhurdle1d_abk(y != 0, y, a=1, b=2, k=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.