loglik2.C {mixstock}R 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


[Package mixstock version 0.9 Index]