r_likelihood: Likelihood function given discrete data (normal)

View source: R/observation_model_likelihoods.R

r_likelihoodR Documentation

Likelihood function given discrete data (normal)

Description

Calculates the likelihood of observing a set of discrete measurements given a corresponding set of predicted antibody levels

Usage

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

Arguments

expected

vector of expected antibody levels

data

vector of observed discrete measurements

expected_indices

the indices of the measurement_shifts vector that each predicted antibody level 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 March 21, 2024, 5:38 a.m.