View source: R/groupAttribABT.R
groupAttribABT | R Documentation |
Addition of a new attribute that categorizes patients in specified groups to an ABT class object.
groupAttribABT(objName = "inData", sourceAttrib = "Age", newAttribName = "AgeGroup", groupNames = c("young", "middle", "elderly"), groupLimmits = list(c(0, 39), c(40, 64), c(65, 200)))
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 |
an ABT class object
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.