Description Usage Arguments Value See Also Examples
Multiple SNPs can be analyzed utilizing multiple CPU cores (requires the R package doMC), which calls singleSNP. Estimation results include the parameter estimates and their estimated standard errors, the p-values for significance tests (need to call OmnibusTest), some model information, and omnibus test if required (the argument test
should be specified).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Y |
a |
Gc |
a |
Gm |
a |
Xo |
a |
Xc |
a |
Xm |
a |
X.Gm |
a |
G.main |
a vector containing the main SNP effects taking values 'Gc' and/or 'Gm' (default value: c('Gc','Gm')) |
G.int |
an indicator for the presence of Gc x Gm interaction (TRUE for yes and FALSE for no; default value: FALSE) |
mode |
mode of inheritance ('rec' for recessive, 'add' for additive, 'dom' for dominant; default value: 'add') |
prev |
specified disease prevalence (default value: 0.01) |
ind |
a logical variable indicating whether Gm and X.Gm are independent (TRUE for independence and FALSE for dependence, default value: FALSE) |
HWE |
a logical variable indicating whether the HWE assumption is incorporated (TRUE for incorprated and FALSE otherwise; default value: TRUE) |
normalized.genotype |
a logical variable indicating whether the genotypes are normalized (TRUE for normalized and FALSE otherwise, default value: FALSE). If FALSE, Gc and Gm should take values 0 (genotype |
test |
a vector of predictor indices in Omnibus test (default value: NULL; if not NULL, call OmnibusTest) |
cores |
the number of CPU cores used for parallele execution. If not specified, the system will determine its value. |
a list of length m
, each element is a list with the following elements
|
estimation and significance test results for the new method |
|
estimation and significance test results for the standard logistic regression method |
|
covariance matrix of the estimated parameters by the new method |
|
covariance matrix of the estimated parameters by the standard logistic regression method) |
|
logistic regression model for the penetrance function |
|
daLOG model relating maternal genotype and maternal covariates |
|
Omnibus test results (test statistic, degrees of freedom, p-value) if |
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
library(foreach)
data(SampleData)
Y = SampleData[,1]
M = 10 # the number of SNPs
Gc = SampleData[,1+1:M]
Gm = SampleData[,1+M+(1:M)]
X = SampleData[,-(1:(1+2*M))]
res = multipleSNP(Y,Gc,Gm,Xo=X,Xc=X,Xm=X,X.Gm=X)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.