Description Usage Arguments Value See Also Examples
This function is called internally by other functions.
It prepares data and calls predictorC_wrap
to predict the probability of death
and then calls the C++ function compute_logLikC
to computes the log-likelihood in C++.
1 2 | logLik_from_design_matrix(data, design_matrix, scale = 1,
indices = NULL)
|
data |
The dataset to be used |
design_matrix |
The design matrix |
scale |
The scaling parameter (useful if the optimisation function can only minimise) |
indices |
The list of indices computed by |
The scaled log-likelihood.
predictorC_wrap
, compute_logLik
1 2 3 | pmat <- build_param_matrix(param_values = c(0.1, 0.2), param_str = c("w1" = "s"))
dmat <- build_design_matrix(data = SurvEles_small, param_matrix = pmat)
logLik_from_design_matrix(data = SurvEles_small, design_matrix = dmat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.