Description Usage Arguments See Also
View source: R/attribrisk.fit.R
This function is used internally by attribrisk functions.
1 2  |   attribrisk.fit(x, y, w, offset, match, xbase,
    fit = FALSE)
 | 
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  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.