calc_mean_titer_negll: Calculate the total negative log-likelihood of a mean titer

View source: R/RcppExports.R

calc_mean_titer_negllR Documentation

Calculate the total negative log-likelihood of a mean titer

Description

This is a base function to sum the total _negative_ log likelihood of a mean titer.

Usage

calc_mean_titer_negll(predicted_mean, max_titers, min_titers, titer_sd)

Arguments

predicted_mean

The predicted mean titer.

max_titers

Numeric vector of the upper bounds of the measured titers.

min_titers

Numeric vector of the lower bounds of the measured titers.

titer_sd

The expected standard deviation of titers.

Details

This function calculates the total negative log-likelihood of a predicted mean titer given a set of titers. The main assumption is that both measurement error and titer variation are normally distributed. Note that the argument titer_sd is the total expected standard deviation of the titer set, i.e. measurement error plus titer variation.


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