file <- system.file("extdata", "testLR.csv", package="PhenStat")
testLR <- PhenList(dataset=read.csv(file),
testGenotype="Mock")
testLR2 <- LRDataset(testLR,"V2")
# when "testDataset" function's argument "callAll" is set to FALSE
# only "startLRModel" function is called - the first step of LR framework
resultLR <- testDataset(testLR2,
depVariable="V2",
callAll=FALSE,
method="LR")
# print out formula that has been created
analysisResults(resultLR)$model.formula.genotype
# print out batch effect's significance
analysisResults(resultLR)$model.effect.batch
Run the code above in your browser using DataLab