Trivariate_LSDsim {trawl} | R Documentation |
Simulates from the trivariate logarithmic series distribution
Description
Simulates from the trivariate logarithmic series distribution
Usage
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
|
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
P(X1=x1,X2=x2,X3=x3)=x1!x2!x3!Γ(x1+x2+x3)(−log(1−p))p1x1p2x2p3x3,
for
x1,x2,x3=0,1,2,…
such that x1+x2+x3>0
.
The simulation proceeds in two steps: First, X1
is simulated from the
modified logarithmic distribution with parameters p~1=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)
when x1>0
.
Value
An N×3
matrix with N
simulated values from the
trivariate logarithmic series distribution
[Package
trawl version 0.2.2
Index]