View source: R/iclogcondist_visualization.R
iclogcondist_visualization | R Documentation |
This function visualizes a user-specified distribution true_dist
(if available) and the estimated
cumulative distribution functions (CDF) F(t)
and log F(t)
for a given range.
The function overlays the estimated functions from a list of fitted models
on the same plot, allowing comparison with the user-specified distribution (if provided).
In a simulation study, the user-specified distribution can correspond to the true underlying distribution.
iclogcondist_visualization(X, range = NA, fit_list = list(), true_dist = NA)
X |
A dataset or input data used to prepare the plot range if |
range |
A numeric vector of length 2 specifying the range of |
fit_list |
A named list of fitted models, where each element is expected to contain
an |
true_dist |
Optional. A data frame or list containing the user-specified distribution values,
with components |
A list containing two ggplot objects: logF_plot
for log F(t)
and F_plot
for F(t)
.
# Example usage
data(lgnm)
fit_LCMLE <- ic_LCMLE(lgnm)
fit_UMLE <- ic_UMLE(lgnm)
iclogcondist_visualization(
X = lgnm,
range = c(0, 10),
fit_list = list(
"UMLE" = fit_UMLE,
"LCMLE" = fit_LCMLE
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.