FMW: FMW

Description Usage Arguments Details Value Author(s) Examples

View source: R/FMW.R

Description

A method based on the method based on two-step MOVER intervals(also see FMWH) to construct the simultaneous confidence intervals for Ratios of Means of Log-normal Populations with Zeros.

Usage

1
FMW(n,p,mu,sigma,N,C2=rbind(c(-1,1,0),c(-1,0,1),c(0,-1,1)),alpha=0.05)

Arguments

n

The sample size of the mixture distributions,must be an integer vector.

p

The zero probability of the mixture distribution,it has the same length to the n params.

mu

The mean of the non-zero samples,which after log-transformation.

sigma

The variance of the non-zero samples,which after log-transformation.

N

The number of independent generated data sets.

C2

Matrix C,You can refer to the paper of Xu et al. for specific forms.

alpha

The confidence level,it always set alpha=0.5

Details

More information about FMW, you can read the paper: Simultaneous Confidence Intervals for Ratios of Means of Log-normal Populations with Zeros.

Value

The method will return the Simultaneous Confidence Intervals(SCIs) and the time consuming

Author(s)

Jing Xu, Xinmin Li, Hua Liang

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
alpha <- 0.05
p <- c(0.1,0.15,0.1)
n <- c(30,30,30)
mu <- c(0,0,0)
sigma <- c(1,1,1)
N <- 500

FMW(n,p,mu,sigma,N)

## Not run: 
p <- c(0.1,0.15,0.1,0.6)
n <- c(30,15,10,50)
mu <- c(1,1.3,2,0)
sigma <- c(1,1,1,2)
C2 <- rbind(c(-1,1,0,0),c(-1,0,1,0),c(-1,0,0,1),c(0,-1,1,0),c(0,-1,0,1),c(0,0,-1,1))
N <- 1000

FMW(n,p,mu,sigma,N,C2 = C2)

## End(Not run)

LN0SCIs documentation built on May 1, 2019, 7:05 p.m.