rqt-covariates: This function performs an access to covariates

covariatesR Documentation

This function performs an access to covariates

Description

An accessor to covariates

Usage

covariates(obj)

## S4 method for signature 'rqt'
covariates(obj)

Arguments

obj

An object of rqt class.

Value

covariates returns the covariates

Examples

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)
covariates(obj)

izhbannikov/rqt documentation built on Aug. 2, 2024, 1:39 p.m.