r_likelihood_continuous: Likelihood function given continuous data (normal)

View source: R/observation_model_likelihoods.R

r_likelihood_continuousR Documentation

Likelihood function given continuous data (normal)

Description

Calculates the likelihood of observing a set of continuous and bounded measurements given a corresponding set of predicted antibody levels

Usage

r_likelihood_continuous(
  expected,
  data,
  theta,
  expected_indices = NULL,
  measurement_shifts = NULL
)

Arguments

expected

vector of expected antibody levels

data

vector of observed continuous measurements

expected_indices

the indices of the measurement_shifts vector that each predicted antibody levels needs adding to it

measurement_shifts

the vector of measurement shifts for each cluster to add to the predicted antibody levels

Value

a vector with the likelihood of making each observation given the predictions


seroanalytics/serosolver documentation built on Aug. 18, 2024, 12:46 p.m.