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 pms parametrization.
1  | log_dhurdle1d_pms(V, Y, p, mu, sigmasq)
 | 
V | 
 A logical vector, indicating if each entry in   | 
Y | 
 A numerical vector of i.i.d. 1-d Hurdle random variables.  | 
p | 
 A number, the   | 
mu | 
 A number, the   | 
sigmasq | 
 A number, the   | 
The log probability of a sample y from the 1-d Hurdle model with pms parametrization with respect to the sum of the Lebesgue measure and a point mass at 0 is
log(1-p) if it is equal to 0, or log(p)-(y-mu)^2/2/sigmasq otherwise.
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_pms(n=100, log_odds=1.2, mu=2.3, sigmasq=3.4)
log_dhurdle1d_pms(y != 0, y, p=exp(1.2)/(exp(1.2)+1), mu=2.3, sigmasq=3.4)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.