Description Usage Arguments Details Value See Also Examples
This function is called internally by other functions.
It is a wrapper to the function logLik_from_design_matrix
which has
inputs consistent to the requirements of optimisation routines.
1 2 3 |
param_values |
The vector of values for the parameters |
param_str |
The named vector indicating the parameter structure, that is, the type of subcategory for each meta parameter |
data |
The dataset to be used |
indices |
The list of indices computed by |
scale |
The scaling parameter (useful if the optimisation function can only minimise) |
param_matrix |
The matrix storing parameter values |
empty_param_matrix_full |
The empty expanded or complete parameter matrix |
empty_design_matrix |
The empty design matrix |
If the argument param_matrix
is given, the parameter matrix will be
updated and not build from scratch. This will save some computation time.
The scaled log-likelihood.
1 2 3 4 5 | logLik_from_vector_param(param_values = c(0.1, 0.200001), param_str = c("w1" = "s"),
data = SurvEles_small)
pmat <- build_param_matrix(param_values = c(0.1, 0.2), param_str = c("w1" = "s"))
logLik_from_vector_param(param_values = c(0.1, 0.200001, rep(0, 14)), param_str = c("w1" = "s"),
data = SurvEles_small, param_matrix = pmat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.