Calculate_preGMT: Calculate pre-GMT

View source: R/Calculate_preGMT.R

Calculate_preGMTR Documentation

Calculate pre-GMT

Description

Calculate_preGMT calculates the log-transformed pre-vaccination geometric mean titer (pre-GMT)

Usage

Calculate_preGMT(dat_list, subjectCol = "SubjectID")

Arguments

dat_list

a named list like the one returned by FormatTiters.

subjectCol

the name of the column specifying a subject ID. Default is "SubjectID".

Details

Non-logged HAI titers for each strain are used to calculate the geometric mean and the geometric mean for each subject is subsequently log2-transformed.

Value

A named vector containing the pre-GMT for each subject

Author(s)

Stefan Avey

Examples

## Prepare the data
titer_list <- FormatTiters(Year2_Titers)

Calculate_preGMT(titer_list)

stefanavey/titer documentation built on Jan. 27, 2023, 3:41 a.m.