Learn R Programming

likeLTD (version 6.3.0)

create.likelihood: likeLTD::create.likelihood

Description

Creates an objective function

Usage

create.likelihood(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

Value

A function

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 product of the likelihood and penalties across all loci.

See Also

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