Learn R Programming

drgee (version 1.0.1)

ebeFit: Exposure nuisance model based estimation

Description

Exposure nuisance model based estimation given a drgeeData object.

Usage

ebeFit(object, rootFinder=findRoots, ...)

Arguments

object
A drgeeData object.
rootFinder
A function used to solve a system of nonlinear equations. Default is findRoots.
...
Further arguments to be passed to drgeeFit or to the function rootFinder.

Value

  • A list containing:
  • coefficientsThe estimated parameters in the main model.
  • vcovThe estimated covariance matrix.
  • optim.objectThe optimization object returned from the function rootFinder function. Is NULL when object$olink is "logit".

encoding

latin1

Details

ebeFit performs exposure nuisance model based estimation (as described in the man page for drgee) given a drgeeData object.

The models are specified by variables y, a, x, yx, ax, z and as character variables olink and elink which are assumed to be found in the input argument object as a drgeeData object.

The rootFinder argument is only needed when object$olink is "log". The rootFinder argument is not needed when object$olink is "identity". Any user supplied function to rootFinder is expected to have the same input and output as findRoots.

Robust variance is calculated by robVcov.

ebeFit is meant to be called by drgee.

See Also

drgeeData, drgee, findRoots and robVcov.