Analytic non-establishment class likelihood for COVID5001-style analyses
Source:R/likelihood.R
mbmm_noise_floor_loglik.RdComputes the class-conditional likelihood for a non-establishment or nonproductive class whose expected viral load is a fixed fraction of the observation-specific LOD. In the COVID5001 manuscript analysis, the default mean was LOD / 2 on the natural viral-load scale.
Arguments
- obs
Subject observations with columns
y,lod, and optionallytargetandcensored.- sigma
Measurement-error SD on the log10 likelihood scale. Either a scalar or a target-named numeric vector.
- lod_fraction
Expected non-establishment mean as a fraction of the LOD. The manuscript default is
0.5.- log_scale
Whether
obs$yandobs$lodare already on the log10 scale. WhenFALSE, the non-establishment mean is constructed aslod_fraction * lodon the natural scale and then log10-transformed.