Description Usage Arguments Examples
View source: R/associationTest.R
Constructs an S3-object containing phenotype and if additional covariats
exist a design matrix of those. The phenotype object is needed as input for
qtcatHit
.
1 | qtcatPheno(names, pheno, family = "gaussian", covariates = NULL)
|
names |
a vector of individual names of length 'n'. |
pheno |
a vector of length 'n' or a matrix size 'n x 2' in case of binomial family. This contains the phenotypic observations. |
family |
a character string specifying the family of the phenotype distribution. Either "gaussian" (default) or "binomial". |
covariates |
a matrix typically generated by a call of
|
1 2 3 4 5 6 7 8 | # file containing example data for a phenotype.
pfile <- system.file("extdata/phenodata.csv", package = "qtcat")
pdat <- read.csv(pfile, header = TRUE)
# Construct phenotype object
pheno <- qtcatPheno(names = pdat[, 1],
pheno = pdat[, 2],
covariates = model.matrix(~ pdat[, 3]))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.