p_a: Function that gives the probability of observing Ct value x...

View source: R/likelihoods.R

p_aR Documentation

Function that gives the probability of observing Ct value x given age (days after infection) a and the viral kinetics curve.

Description

This is the Gumbel probability density function normalized to the observable values.

Usage

p_a(x, a, pars, viral_loads, sd_mod)

Arguments

x

Observed Ct value.

a

Days after infection.

pars

Model parameters.

viral_loads

Observed viral loads.

sd_mod

Standard deviation of the viral kinetics curve.

Value

Returns a vector of probabilities.

Author(s)

James Hay, jhay@hsph.harvard.edu

See Also

Other likelihood functions: likelihood_R(), likelihood_cpp_wrapper(), likelihood_detectable(), likelihood_pos_R(), prob_detectable_curve(), prop_detectable_single(), prop_detectable()


jameshay218/virosolver documentation built on April 17, 2025, 2:57 p.m.