fit_XCI_model {xlink} | R Documentation |
Model fitting results for each SNP considering as XCI type
Description
fit_XCI_model
returns model fitting results for each SNP understanding as XCI type.
Usage
fit_XCI_model(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.