create.likelihood.log: likeLTD::create.likelihood.log

Description Usage Arguments Details Value See Also

View source: R/objectives.R

Description

Creates an objective function

Usage

1
create.likelihood.log(hypothesis, addAttr=FALSE, ...)

Arguments

hypothesis

Hypothesis for which to create the objective function

addAttr

Whether to add attributes to the objective functions. There are two attributes: (1) “hypothesis” referencing the input hypothesis, (ii) ‘functions’ containing the individual objective functions per Locus. The latter contain further attributes.

...

Any named parameter to modify the hypothesis, e.g. nUnknowns

Details

The objective function is created from the hypothesis. Itself, it takes as arguments the nuisance parameters and, optionally, the parameters for the penalty function. This particular flavor of the objective returns the sum of the log-likelihood and the sum of log-penalties across loci.

Value

A function

See Also

create.likelyhood.vectors, create.likelihood, penalties, Objective Functions


likeLTD documentation built on May 1, 2019, 7:58 p.m.