fit_all_models: Model fitting results for each SNP considering as XCI, XCI-E...

Description Usage Arguments Value See Also

View source: R/R/fit_all_models.R View source: R/fit_all_models.R

Description

fit_all_models returns model fitting results for each SNP understanding as XCI, XCI-E and XCI-S type respectively. Model comparison results is provided by using AIC as a criterion.

Usage

1
2
fit_all_models(resp, os, ostime, snp, gender, male, female, covars, model,
  data)

Arguments

resp

Response variable for continuous or binary model fitting.

os

Survival indicator, 1 for death, 0 for censoring.

ostime

Duration time of survival.

snp

Single SNP name.

gender

Gender variable.

male

Male indicator in gender variable.

female

Female indicator in gender variable.

covars

Covariates list.

model

Fitting model type. For 'linear', fitting linear model. For 'binary', fitting logistic regression model. For 'survival', fitting survival model.

data

Data set.

Value

It returns estimated parameters, confidence interval and P value for each variable. Baseline model and full model maximum likelihood estimation are provided.

See Also

lm{stats} for linear model, glm{stats} for logistic regression model, and coxph{survival} for survival model.


qiuanzhu/xlink documentation built on Aug. 14, 2019, 11:23 a.m.