model.lik: Auxiliary likelihood Function

View source: R/model.lik.r

model.likR Documentation

Auxiliary likelihood Function

Description

This function computes the likelihood of the model.

Usage

model.lik(para, likmat, out0, xigrid)

Arguments

para

Value of the model parameters, in the form c(mu, sigma, pi).

likmat

Grid of conditional probabilities for each tumor pair (rows) and each value of xi (columns). This matrix is generated by the function grid.lik.

out0

a small value that is used when the likelihood goes to infinite values, posing problem for the maximization. The corresponding combination of the parameters will thus be excluded from the search.

xigrid

Grid of the values of xi, corresponding to its domain of definition.

Value

Return the likelihood value of the model for the given parameters.


IOstrovnaya/Clonality documentation built on July 22, 2023, 4:16 a.m.