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


adamkucharski/serosolver documentation built on April 28, 2024, 6:19 p.m.