Simulates from the trivariate logarithmic series distribution
Simulates from the trivariate logarithmic series distribution
Trivariate_LSDsim(N, p1, p2, p3)
Arguments
N: number of data points to be simulated
p1: parameter p1 of the trivariate logarithmic series distribution
p2: parameter p2 of the trivariate logarithmic series distribution
p3: parameter p3 of the trivariate logarithmic series distribution
Returns
An N×3 matrix with N simulated values from the trivariate logarithmic series distribution
Details
The probability mass function of a random vector X=(X1,X2,X3)′ following the trivariate logarithmic series distribution with parameters 0<p1,p2,p3<1 with p:=p1+p2+p3<1 is given by
The simulation proceeds in two steps: First, X1 is simulated from the modified logarithmic distribution with parameters c("tilde\n", "p1=p1/(1−p2−p3)") and δ1=log(1−p2−p3)/log(1−p). Then we simulate (X2,X3)′ conditional on X1. We note that (X2,X3)′∣X1=x1 follows the bivariate logarithmic series distribution with parameters (p2,p3) when x1=0, and the bivariate negative binomial distribution with parameters (x1,p2,p3)