q_gg_Z: Outlier Probability for CV Under GG Assumption (Using...

Description Usage Arguments Value

View source: R/Helper_Functions.R

Description

This function provides the outlier probability of a pair of replicates described by Zeta = z using the marginal method assuming the underlying data X_1 and X_2 follow independent (and possibly identically distributed) GG distributions. We use the parameterization used by the R package flexsurv, given by Kotz and Johnson (1970). We numerically integrate the PDF given by the function f_gg using the function adaptIntegrate in the package cubature.

Usage

1
q_gg_Z(z, alpha_1, beta_1, c_1, alpha_2, beta_2, c_2)

Arguments

z

The coefficient of variation (CV) between two replicates

alpha_1

The parameter alpha > 0 in the GG distribution for X_1

beta_1

The parameter beta > 0 in the GG distribution for X_1

c_1

The parameter c > 0 in the GG distribution for X_1

alpha_2

The parameter alpha > 0 in the GG distribution for X_2

beta_2

The parameter beta > 0 in the GG distribution for X_2

c_2

The parameter c > 0 in the GG distribution for X_2

Value

The marginal probability of observing Zeta >= z


matthew-seth-smith/replicateOutliers documentation built on Jan. 24, 2020, 9:34 p.m.