Description Usage Arguments Value See Also
View source: R/R/fit_XCI_E_model.R View source: R/fit_XCI_E_model.R
fit_XCI_E_model
returns model fitting results for each SNP understanding as XCI-E type.
1 2 | fit_XCI_E_model(resp, os, ostime, snp, gender, male, female, covars, model,
data)
|
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. |
It returns estimated parameters, confidence interval and P value for each variable. Baseline model and full model maximum likelihood estimation are provided.
lm{stats}
for linear model, glm{stats}
for logistic regression model, and coxph{survival}
for survival model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.