| fit_all_models {xlink} | R Documentation | 
Model fitting results for each SNP considering as XCI, XCI-E and XCI-S type
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
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.