coef.gtReg {binGroup2}R Documentation

Extract coefficients from a fitted group testing model

Description

Extract coefficients from objects of class "gtReg" returned by gtReg.

Usage

## S3 method for class 'gtReg'
coef(object, digits = max(3, getOption("digits") - 3), ...)

## S3 method for class 'gtReg'
coefficients(object, digits = max(3, getOption("digits") - 3), ...)

Arguments

object

An object of class "gtReg", created by gtReg, from which the coefficients are to be extracted.

digits

digits for rounding.

...

not currently used.

Value

Model coefficients extracted from the object object.

Author(s)

Brianna D. Hitt

Examples

data(hivsurv)
fit1 <- gtReg(formula = groupres ~ AGE * EDUC.,
              data = hivsurv, groupn = gnum,
              linkf = "probit")
coefficients(object = fit1)

[Package binGroup2 version 1.3.1 Index]