attribrisk.fit: This function is used internally by attribrisk functions.

Description Usage Arguments See Also

View source: R/attribrisk.fit.R

Description

This function is used internally by attribrisk functions.

Usage

1
2
  attribrisk.fit(x, y, w, offset, match, xbase,
    fit = FALSE)

Arguments

x

is a design matrix of dimension "n * p".

y

is a vector of observations of length "n".

w

optional weights for the fitting criterion.

offset

this can be used to specify an component to be included in the linear predictor during fitting. This should be NULL or a numeric vector of length equal to the number of observations.

match

a vector of length n that indicates which observations are a part of each match; NULL for an unmatched analysis. The values should be integers from 1 to the number of matched sets.

xbase

the x matrix, minus the values used as a baseline for exposure

fit

if TRUE then return the underlying glm or coxph fit object as well as the attributable risk estimate

See Also

attribrisk


attribrisk documentation built on May 30, 2017, 7:34 a.m.