View source: R/fit_null_glm_Binary_SPA.R
fit_null_glm_Binary_SPA | R Documentation |
The fit_null_glm_Binary_SPA
function is a wrapper of the glm
function from the
stats
package that fits a regression model under the null hypothesis for
imbalanced case-control unrelated samples, which provides the preliminary step for subsequent
variant-set tests in whole genome sequencing data analysis. See glm
for more details.
fit_null_glm_Binary_SPA(fixed, data, family = binomial(link = "logit"), ...)
fixed |
an object of class |
data |
a data frame or list (or object coercible by |
family |
a description of the error distribution and link function to be used
in the model. This can be a character string naming a family function, a family
function or the result of a call to a family function. (See |
... |
additional arguments that could be passed to |
The function returns an object of the model fit from glm
(obj_nullmodel
),
with additional elements indicating the samples are unrelated
(obj_nullmodel$relatedness = FALSE
), and indicating the samples are under imbalanced case-control design (obj_nullmodel$use_SPA = TRUE).
See glm
for more details.
Dey, R., et al. (2017). A fast and accurate algorithm to test for binary phenotypes and its application to PheWAS. The American Journal of Human Genetics, 101(1), 37-49. (pub)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.