loglik2.C: likelihood calculation, in C

View source: R/mixstock.R

loglik2.CR Documentation

likelihood calculation, in C

Description

takes a parameter vector corresponding to the (possibly transformed) source contributions and source marker frequencies and returns the negative log likelihood

Usage

loglik2.C(p, sourcesamp, mixsamp = NULL, verbose = FALSE,
transf = c("full", "part", "none"), full = FALSE, cond = FALSE, debug = FALSE)

Arguments

p

parameter vector

sourcesamp

source marker samples

mixsamp

mixed stock samples

verbose

verbose output?

transf

transformation: "full", "part", or "none"

full

full likelihood (including normalization constants?)

cond

conditional likelihood (not including source sample likelihood?

debug

debugging output?

Value

numeric value of the negative log-likelihood


bbolker/mixstock documentation built on July 23, 2024, 12:18 p.m.