Gaussian log-density with optional left censoring at an LOD
Source:R/utils.R
mbmm_dnorm_censored.RdDetected observations contribute a Gaussian log-density on the measurement scale. Left-censored observations contribute the Gaussian probability of falling at or below the LOD.
Arguments
- y
Observed value on the same scale as
mean. Values ofyare ignored wherecensoredis TRUE.- mean
Predicted mean on the likelihood scale.
- sd
Strictly positive measurement-error standard deviation.
- censored
Logical or 0/1 vector indicating left-censored observations.
- lod
LOD on the same scale as
yandmean. Required for every censored observation.