set.seed(111)
N=1000;lambda=10;
x<-stats::rpois(N,lambda=lambda)
FI.ZI(x,lambda=5,dist="poisson")
#$inversefisher
# lambda
#[1,] 9.896
#$ConfidenceIntervals
#[1] 9.701025 10.090974
set.seed(111)
N=1000;lambda=10;phi=0.4;
x1<-sample.h1(N,lambda=lambda,phi=phi,dist="poisson")
FI.ZI(x1,lambda=4,dist="ph")
#$inversefisher
# [,1] [,2]
#[1,] 0.237679 0.00000
#[2,] 0.000000 16.12686
#$ConfidenceIntervals
# [,1] [,2]
#CI of Phi 0.3587835 0.4192165
#CI of lambda 9.6000082 10.0978060
set.seed(289)
N=2000;mean=10;sigma=2;phi=0.4;
x<-sample.zi1(N,phi=phi,mean=mean,sigma=sigma,dist="lognormal")
FI.ZI(x, mean=1,sigma=1, dist="zilognorm")
# $inversefisher
# [,1] [,2] [,3]
#[1,] 0.6313214 0.000000 0.000000
#[2,] 0.0000000 6.698431 0.000000
#[3,] 0.0000000 0.000000 3.349215
#$ConfidenceIntervals
# [,1] [,2]
#CI of phi 0.3521776 0.4218224
#CI of mean 9.8860358 10.1128915
#CI of sigma 1.9461552 2.1065664
Run the code above in your browser using DataLab