Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

residuals.haplo.glm

Accessing residuals for haplo.glm fit


Description

Access the residuals from a haplo.glm model fit

Usage

## S3 method for class 'haplo.glm'
residuals(object, type=c("deviance", "pearson",
                                "working", "response"), ...)

Arguments

object

A haplo.glm object

type

Type of residuals to return. Options are "deviance" (default), "pearson", "working", and "response". Partial residuals not supported in this method.

...

Optional arguments

Details

Many of the subjects in a haplo.glm fit are expanded in the model matrix with weights used to reflect the posterior probability of the subject's haplotype pairs given their genotype. The working residuals within the fitted object are from this expanded model matrix, and the residuals in this method are calculated from the weighted fitted value for the subject across all their haplotype pairs.

Value

Residuals for each person in the model.

See Also


haplo.stats

Statistical Analysis of Haplotypes with Traits and Covariates when Linkage Phase is Ambiguous

v1.8.6
GPL (>= 2)
Authors
Sinnwell JP, Schaid DJ
Initial release
2020-10-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.