Description Usage Arguments Details Value See Also
View source: R/objectives-peaks.R
Creates an objective function for peak height data
1 2 | create.likelihood.vectors.peaks(hypothesis, addAttr=FALSE,
likeMatrix=FALSE, diagnose=FALSE,...)
|
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. |
likeMatrix |
Whether to return likelihoods for every genotype combination, or
a likelihood summed over all genotypes after optimisation. Set to TRUE
for individual genotype likelihoods. This is used for
|
diagnose |
Logical. If |
... |
Any named parameter to modify the hypothesis, e.g.
|
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 a list containing two items: (i) the likelihoods per locus, (ii) the penalties per locus.
A function
get.likely.genotypes.peaks, penalties.peaks, Objective Functions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.