rqt {rqt} | R Documentation |
This function generates rqt class objects
rqt(phenotype = NULL, genotype = NULL, covariates = NULL, results = NULL)
phenotype |
Phenotype (a vector of length
|
genotype |
Genotype - an object of class
|
covariates |
Covariates, a data frame |
results |
A list of two: test statistics:
( |
Object of class rqt
data <- data.matrix(read.table(system.file("extdata/test.bin1.dat", package="rqt"), header=TRUE)) pheno <- data[,1] geno <- data[, 2:dim(data)[2]] colnames(geno) <- paste(seq(1, dim(geno)[2])) geno.obj <- SummarizedExperiment(geno) obj <- rqt(phenotype=pheno, genotype=geno.obj) print(obj)