model.lik {Clonality} | R 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.

[Package Clonality version 1.35.0 Index]