View source: R/negLL_function.R
negLL_function | R Documentation |
Computes negative log likelihood for optimizer
negLL_function(par, y, X, y.left, y.right, wt)
par |
a vector of parameter estimates |
y |
a vector of death ages |
X |
a model matrix |
y.left |
left truncation age |
y.right |
right truncation age |
wt |
weight |
The negative log likelihood of parameter estimates given observed data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.