model.lik: Auxiliary likelihood Function

Description Usage Arguments Value

View source: R/model.lik.r

Description

This function computes the likelihood of the model.

Usage

1
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.


Clonality documentation built on Nov. 8, 2020, 7:45 p.m.