summary.gtReg {binGroup2}R Documentation

Summary method for group testing regression model fits

Description

Produce a summary list for objects of class "gtReg" returned by gtReg.

Usage

## S3 method for class 'gtReg'
summary(object, ...)

Arguments

object

a fitted object of class "gtReg".

...

currently not used.

Details

The coefficients component of the results gives the estimated coefficients and their estimated standard errors, together with their ratio. This third column is labeled z ratio using Wald tests. A fourth column gives the two-tailed p-value corresponding to the z-ratio based on a Wald test. Note that it is possible that there are no residual degrees of freedom from which to estimate, in which case the estimate is NaN.

Value

summary.gtReg returns an object of class "summary.gtReg", a list containing:

call

the component from object.

link

the component from object.

deviance

the component from object, for simple pooling (type = "sp" in gtReg) only.

aic

the component from object, for simple pooling (type = "sp" in gtReg) only.

df.residual

the component from object, for simple pooling (type = "sp" in gtReg) only.

null.deviance

the component from object, for simple pooling (type = "sp" in gtReg) only.

df.null

the component from object, for simple pooling (type = "sp" in gtReg) only.

deviance.resid

the deviance residuals, for simple pooling (type = "sp" in gtReg) only.

coefficients

the matrix of coefficients, standard errors, z-values, and p-values. Aliased coefficients are omitted.

counts

the component from object.

method

the component from object, for simple pooling (type = "sp" in gtReg) only.

Gibbs.sample.size

the component from object, for array testing (type = "array" in gtReg) only.

cov.mat

the estimated covariance matrix of the estimated coefficients.

Author(s)

The majority of this function was originally written as summary.gt and summary.gt.mp by Boan Zhang for the binGroup package. Minor modifications were made to the function for inclusion in the binGroup2 package.

See Also

gtReg for creating an object of class "gtReg".

Examples

data(hivsurv)
fit1 <- gtReg(type = "sp", formula = groupres ~ AGE + EDUC., 
              data = hivsurv, groupn = gnum, sens = 0.9, spec = 0.9, 
              method = "Xie")
summary(fit1)

# This examples takes approximately 5 seconds to run.
# 5x6 and 4x5 array
set.seed(9128)
sa2a <- gtSim(type = "array", par = c(-7, 0.1), size1 = c(5, 4), 
              size2 = c(6, 5), sens = 0.95, spec = 0.95)
sa2 <- sa2a$dframe

fit2 <- gtReg(type = "array", formula = cbind(col.resp, row.resp) ~ x, 
              data = sa2, coln = coln, rown = rown, arrayn = arrayn, 
              sens = 0.95, spec = 0.95, linkf = "logit", 
              n.gibbs = 1000, tol = 0.005)
summary(fit2)

[Package binGroup2 version 1.1.0 Index]