calc_titer_lims: Get titer limits

View source: R/titer_lims.R

calc_titer_limsR Documentation

Get titer limits

Description

Function for getting upper and lower limits of measured titers on the log scale.

Usage

calc_titer_lims(titers, control = list())

Arguments

titers

A numeric/character vector or matrix of titer measurements.

fit_opts

A list of fitting options (see details).

Details

This function assumes that HI measurements were performed in 2-fold dilution steps and converts them to the log scale using the formula:

a + b

Hence an HI titer of 20, which would convert to 1 via the transformation above, would be assumed to have upper and lower limits of 1.5 and 0.5 respectively.

In the case of non-detectable titers, such as <10, the lower bound of the measured value is taken from the parameter 'min_titer_possible', defaulting to the value found from a call to 'ablandscape.control()'. For a greater than value, i.e. >1280, the upper bound of the value is taken from the parameter 'max_titer_possible'. You can set different defaults by passing them as named arguments to the list, as shown in the examples.

Value

Returns a list of length two with values max_titers and min_titers, giving the numeric vectors of the upper and lower bounds of the titers on the log scale.


acorg/ablandscapes documentation built on March 4, 2024, 7:50 a.m.