GPQH: GPQH

Description Usage Arguments Author(s) Examples

View source: R/LN0SCIs3.r

Description

A function to compute SCIs for lon-normal populations with zeros.

Usage

1
GPQH(n1, n2, n3, p1, p2, p3, mu1, mu2, mu3, sigma1, sigma2, sigma3, alpha, N, C2)

Arguments

ni

the ith sample size,must be an integer

pi

Sample i's zero probability

mui

Non-zeros sample i's mean after log transformation

sigmai

Non-zeros sample i's variance after log transformation

N

The number of independent generated data sets

C2

Matrix C, You can refer to reference [6] for specific forms

Author(s)

Jing Xu, Xinmin Li, HuaLiang

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

#-----GPQH Example-------------------------------

alpha<-0.05
N<-5000;
M<-5000;

p<-c(0.1,0.1,0.1)
n<-c(10,10,10)
mu<-c(0,0,0)
sigma<-c(1,1,1)

GPQH(n[1],n[2],n[3],p[1],p[2],p[3],mu[1],mu[2],mu[3],sigma[1],sigma[2],sigma[3],alpha,N);

DataXujing/LN0SCIs3 documentation built on May 20, 2019, 5:24 p.m.