negll_titer_lm: Calculate the negative log likelihood of a linear model

View source: R/RcppExports.R

negll_titer_lmR Documentation

Calculate the negative log likelihood of a linear model

Description

This is the base function used by the optimizer to calculate the negative log likelihood of a given set of linear model parameters

Usage

negll_titer_lm(par, max_titers, min_titers, ag_coords, ag_weights, error_sd)

negll_lndscp_height(
  par,
  lndscp_height,
  max_titers,
  min_titers,
  ag_coords,
  ag_weights,
  error_sd
)

Arguments

par

A vector of parameters, intercept followed by coefficients for each coordinate dimension, or in the case of getting likelihood for a given height simply the coefficients for each coordinate dimension

max_titers

Numeric vector of the upper bounds of the measured titers

min_titers

Numeric vector of the lower bounds of the measured titers

ag_coords

Matrix of antigenic coordinates relative to the landscape coordinates being modelled

ag_weights

A vector of weights to apply to each antigen, according to their distance from the point being modelled

error_sd

The expected standard deviation of titer error


acorg/ablandscapes documentation built on March 4, 2024, 7:50 a.m.