View source: R/assoc_qt_covar.R
assoc_qt_covar | R Documentation |
Let PLINK detect an association with one ore more quantitative traits.
assoc_qt_covar(
assoc_qt_covar_data,
assoc_qt_covar_params,
plink_options = create_plink_options(),
verbose = FALSE
)
assoc_qt_covar_data |
data to do an association analysis for a quantitative trait with covariates (i.e. using assoc_qt_covar), as can be created by create_assoc_qt_covar_data |
assoc_qt_covar_params |
parameters to do an association analysis for a quantitative trait with covariates (i.e. using assoc_qt_covar), as can be created by create_assoc_qt_covar_params |
plink_options |
options to run PLINK, as created by create_plink_options |
verbose |
the verbosity of a function. Set to TRUE for more output. Use check_verbose to detect if this argument is valid. |
a tibble with the following columns:
trait_name
: name of the quantitive trait,
taken from the phenotype table column name
CHR
: Chromosome number
SNP
: SNP identifier
BP
: Physical position (base-pair)
NMISS
: Number of non-missing genotypes
BETA
: Regression coefficient
SE
: Standard error
R2
: Regression r-squared
T
: Wald test (based on t-distribution)
P
: Wald test asymptotic p-value
The table with have as much rows as the number of SNPs multiplied by the number of traits.
Note that parameters in uppercase are named as such by PLINK.
This function is named after the --assoc
flag used by PLINK
Richèl J.C. Bilderbeek
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.