This function plots the trend of the log-likelihood function concerning a single parameter specified by its index in the parameter vector. It generates samples of the parameter, evaluates them in the log-likelihood function, and displays the results along with the maximum point of the one-dimensional log-likelihood function.
plot_ll_1D(
param_1D,
index_param_1D,
ll_1D,
params,
param_range_min,
param_range_max,
dataset,
centre,
time_axis,
dropout_matrix,
e_matrix,
n_points = 150,
cex = 0.7,
cex_max = 0.8,
color_bg = "black",
color_max_bg = "red",
pch = 21
)A plot displaying the trend of the log-likelihood function concerning a single parameter, including the maximum point.
A numeric value representing the optimal parameter determined by maximizing the log-likelihood function for the specified parameter.
An integer representing the index of the optimal parameter within the parameter vector.
A numeric value of the log-likelihood function evaluated at the optimal parameter param_1D, with the other parameters held constant.
A numeric vector of length equal to the number of parameters minus one, containing the fixed values for the other parameters.
A numeric value indicating the minimum allowable value for the parameter param_1D.
A numeric value indicating the maximum allowable value for the parameter param_1D.
A data frame or matrix containing individual covariates.
A numeric vector indicating individual cluster membership; its length must match the number of individuals in the dataset.
A numeric vector corresponding to the subdivisions of the temporal domain.
A binary matrix indicating which interval of the time domain an individual failed. Each row should sum to 1 (if failed) or 0 (if not failed), with dimensions (n_individuals, n_intervals).
A matrix of dimensions (n_individuals, n_intervals), where each element contains the evaluation of the temporal integral performed by the function time_int_eval.
An integer specifying the number of points at which to evaluate the log-likelihood function. A value that is neither too small nor too high is recommended; the default is 150.
A numeric value specifying the size of the points used for the graphical representation of the log-likelihood function. Default is 0.7.
A numeric value indicating the size of the optimal point (the one maximizing the log-likelihood function). Default is 0.8.
A string specifying the color for the points representing the log-likelihood trend. Default is 'black'.
A string specifying the color for the optimal point provided as the first argument. Default is 'red'.
A numeric or character symbol representing the shape of the plotted points. Default is a circle (21).