fidpoistolint: Fiducial-Based Tolerance Intervals for the Function of Two...

Description Usage Arguments Details Value References See Also Examples

Description

Provides 1-sided or 2-sided tolerance intervals for the function of two Poisson rates using fiducial quantities.

Usage

1
2
3
fidpoistol.int(x1, x2, n1, n2, m1 = NULL, m2 = NULL, FUN, 
               alpha = 0.05, P = 0.99, side = 1, K = 1000, 
               B = 1000) 

Arguments

x1

A value of observed counts from group 1.

x2

A value of observed counts from group 2.

n1

The length of time that x1 was recorded over.

n2

The length of time that x2 was recorded over.

m1

The total number of future trials for group 1. If NULL, then it is set to n1.

m2

The total number of future trials for group 2. If NULL, then it is set to n2.

FUN

Any reasonable (and meaningful) function taking exactly two arguments that we are interested in constructing a tolerance interval on.

alpha

The level chosen such that 1-alpha is the confidence level.

P

The proportion of the population to be covered by this tolerance interval.

side

Whether a 1-sided or 2-sided tolerance interval is required (determined by side = 1 or side = 2, respectively).

K

The number of fiducial quantities to be generated. The number of iterations should be at least as large as the default value of 1000. See Details for the definition of the fiducial quantity for a Poisson rate.

B

The number of iterations used for the Monte Carlo algorithm which determines the tolerance limits. The number of iterations should be at least as large as the default value of 1000.

Details

If X is observed from a Poi(n*λ) distribution, then the fiducial quantity for λ is χ^{2}_{2*x+1}/(2*n).

Value

fidpoistol.int returns a list with two items. The first item (tol.limits) is a data frame with the following items:

alpha

The specified significance level.

P

The proportion of the population covered by this tolerance interval.

fn.est

A point estimate of the functional form of interest using the maximum likelihood estimates calculated with the inputted values of x1, x2, n1, and n2.

1-sided.lower

The 1-sided lower tolerance bound. This is given only if side = 1.

1-sided.upper

The 1-sided upper tolerance bound. This is given only if side = 1.

2-sided.lower

The 2-sided lower tolerance bound. This is given only if side = 2.

2-sided.upper

The 2-sided upper tolerance bound. This is given only if side = 2.

The second item (fn) simply returns the functional form specified by FUN.

References

Cox, D. R. (1953), Some Simple Approximate Tests for Poisson Variates, Biometrika, 40, 354–360.

Krishnamoorthy, K. and Lee, M. (2010), Inference for Functions of Parameters in Discrete Distributions Based on Fiducial Approach: Binomial and Poisson Cases, Journal of Statistical Planning and Inference, 140, 1182–1192.

Mathew, T. and Young, D. S. (2013), Fiducial-Based Tolerance Intervals for Some Discrete Distributions, Computational Statistics and Data Analysis, 61, 38–49.

See Also

fidbintol.int, fidnegbintol.int

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## 95%/99% 1-sided and 2-sided tolerance intervals for 
## the ratio of two Poisson rates.

set.seed(100)

lambda1 <- 10
lambda2 <- 2
n1 <- 3000
n2 <- 3250
x1 <- rpois(1, n1 * lambda1)
x2 <- rpois(1, n2 * lambda2)
fun.ti <- function(x, y) x / y

fidpoistol.int(x1, x2, n1, n2, m1 = 2000, m2 = 2500, 
               FUN = fun.ti, alpha = 0.05, P = 0.99, side = 1)
fidpoistol.int(x1, x2, n1, n2, m1 = 2000, m2 = 2500, 
               FUN = fun.ti, alpha = 0.05, P = 0.99, side = 2)
              

tolerance documentation built on Feb. 6, 2020, 5:08 p.m.