model.lik {Clonality} | R Documentation |
This function computes the likelihood of the model.
model.lik(para, likmat, out0, xigrid)
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. |
Return the likelihood value of the model for the given parameters. This likelihood function is the one that is maximized in the clonal.est function.