View source: R/03_calibration_functions.R
log_lik | R Documentation |
log_lik
computes a log-likelihood value for one (or multiple)
parameter set(s).
log_lik(v_params, l_params_all = load_all_params())
v_params |
Vector (or matrix) of model parameters. |
l_params_all |
List with all parameters of the decision model. |
A scalar (or vector) with log-likelihood values.
## Not run:
v_param_names <- c("r_DieMets",
"r_RecurCDX2pos",
"hr_RecurCDX2neg",
"p_Mets")
n_param <- length(v_param_names)
v_lb <- c(r_DieMets = 0.037,
r_RecurCDX2pos = 0.001,
hr_RecurCDX2neg = 1.58,
p_Mets = 0.9)) # lower bound
v_ub <- c(r_DieMets = -log(1-(1-0.03))/60,
r_RecurCDX2pos = 0.03,
hr_RecurCDX2neg = 4.72,
p_Mets = 0.99) # upper bound
v_target_names <- c("DFS", "OS", "DSS")
n_target <- length(v_target_names)
log_lik(v_params = sample.prior(n_samp = 2))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.