Description Usage Arguments Details Value Author(s) References Examples
Conduct the single-marker test in an association study to test for the association between the genotype at a biallelic marker and a trait.
1 2 3 4 5 6 7 8 |
y |
a numeric vector of the observed trait values in which
the ith element is for the ith subject. The elements
could be discrete ( |
g |
a numeric vector of the observed genotype values ( |
covariates |
an optional data frame, list or environment
containing the covariates used in the model. The default is |
min.count |
a critical value to decide which method is used
to calculate the p-value when the trait is discrete and |
missing.rate |
the highest missing value rate of the genotype
values that this function can tolerate. The default is |
y.continuous |
logical. If |
Single-marker analysis is a core in many gene-based or pathway-based procedures, such as the truncated p-value combination and the minimal p-value.
smt
returns a list with class "htest
".
If y is continuous, the list contains the following components:
statistic | |||
the observed value of the test statistic. | |||
p.value | |||
the p-value for the test. | |||
alternative | |||
a character string describing the alternative hypothesis. | |||
method | |||
a character string indicating the type of test performed. | |||
data.name | |||
a character string giving the names of the data. | |||
sample.size | |||
a vector giving the numbers of the subjects with the genotypes 0 , 1 , and 2 (n0 , |
|||
n1 , and n2 , respectively).
|
If y is discrete, the list contains the following components:
statistic | |||
the observed value of the test statistic. | |||
p.value | |||
the p-value for the test. | |||
alternative | |||
a character string describing the alternative hypothesis. | |||
method | |||
a character string indicating the type of test performed. | |||
data.name | |||
a character string giving the names of the data. | |||
sample.size | |||
a vector giving | |||
the number of subjects with the trait value 1 and the genotype 0 (r0 ), |
|||
the number of subjects with the trait value 1 and the genotype 1 (r1 ), |
|||
the number of subjects with the trait value 1 and the genotype 2 (r2 ), |
|||
the number of subjects with the trait value 0 and the genotype 0 (s0 ), |
|||
the number of subjects with the trait value 0 and the genotype 1 (s1 ), |
|||
and the number of subjects with the trait value 0 and the genotype 2 (s2 ). |
|||
bad.obs | |||
a vector giving the number of missing genotype values with the trait value 1 |
|||
(r.miss ), the number of missing genotype values with the trait value 0 |
|||
(s.miss ), and the total number of the missing genotype values (n.miss ).
|
Lin Wang, Wei Zhang, and Qizhai Li.
Lin Wang, Wei Zhang, and Qizhai Li. AssocTests: An R Package for Genetic Association Studies. Journal of Statistical Software. 2020; 94(5): 1-26.
1 2 3 4 |
Loading required package: cluster
Loading required package: mvtnorm
Loading required package: combinat
Attaching package: 'combinat'
The following object is masked from 'package:utils':
combn
Loading required package: fExtremes
Loading required package: timeDate
Loading required package: timeSeries
Loading required package: fBasics
Loading required package: fGarch
Single-marker test
data: y and g
p-value = 0.4932
alternative hypothesis: the phenotype is significantly associated with the genotype
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.