groupAttribABT {AntibodyTiters} | R Documentation |
Grouping of patients by scores.
Description
Addition of a new attribute that categorizes patients in specified groups to an ABT class object.
Usage
groupAttribABT(objName = "inData", sourceAttrib = "Age",
newAttribName = "AgeGroup", groupNames = c("young", "middle", "elderly"),
groupLimmits = list(c(0, 39), c(40, 64), c(65, 200)))
Arguments
objName |
a character specifying the name of an ABT class object produced by readABT. |
sourceAttrib |
a character specifying the name of source attribute. The contents of this attribute must be integer of numeric. |
newAttribName |
a character specifying the name of the new attribute. |
groupNames |
a character vector specifying the names of categories. |
groupLimmits |
a list of two value integers specifying the lower and upper limmits of scores.
The order of values in this list must correspond to the order of values in |
Value
an ABT class object
Examples
inData <- readABT(fileName = system.file("extdata","toy.xlsx",package="AntibodyTiters"))
inDataA <- groupAttribABT(objName = "inData", sourceAttrib = "Age",
newAttribName = "AgeGroup", groupNames = c("young", "middle", "elderly"),
groupLimmits = list(c(0, 39), c(40, 64), c(65, 200)))
plotAllABT("inDataA", lineAttrib = "AgeGroup", addPoints = TRUE, savePDF = FALSE,
orderOfCategories = c("young", "middle", "elderly"), type = "weeks")
plotAllABT("inDataA", lineAttrib = "AgeGroup", addPoints = TRUE, savePDF = FALSE,
orderOfCategories = c("young", "middle", "elderly"), type = "M1", geometricMean = TRUE)
[Package AntibodyTiters version 0.1.24 Index]