halfLifeABT {AntibodyTiters}R Documentation

Calculating half-life from an ABT class object.

Description

This function calculates T1/2 for each set of sampling points.

Usage

halfLifeABT(x, output = "list", OutFileName = "Thalf.xlsx")

Arguments

x

an ABT class object.

output

a character specifying the type of output; "list", "data.frame" or "xlsx".

OutFileName

a character specifying the file name to be stored in the current directory when output = "xlsx".

Value

a list, a data.frame or an xlsx file depending on the output argument. The list object (produced with output="list") contains data.frame objects for each patients, whereas the data.frame object (produced with output="data.frame") is a combined form derived from the list (simply produced with rbind). The data.frames contain columns named ID (patient ID), START (starting point), END (end point), SPAN (t), MID (mid point), C0 (initial titer), Ct (titer at t) and Thalf (T1/2).

Examples

inData <- readABT(fileName = system.file("extdata","toy.xlsx",package="AntibodyTiters"))
inDataVL <- subset(inData, VeryLow == TRUE)
halfLifeABT(inDataVL, output = "data.frame")

[Package AntibodyTiters version 0.1.24 Index]