calc_titer_lims | R Documentation |
Function for getting upper and lower limits of measured titers on the log scale.
calc_titer_lims(titers, control = list())
titers |
A numeric/character vector or matrix of titer measurements. |
fit_opts |
A list of fitting options (see 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.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.