Visualize correlations between posterior parameter estimates as a heatmap. Useful for identifying highly correlated parameters that may indicate identifiability issues.
Usage
plot_parameter_correlation(
object,
pars = NULL,
method = c("pearson", "spearman"),
show_values = TRUE,
text_size = 3
)Arguments
- object
An
mlumr_fitobject- pars
Character vector. Parameters to include. Default includes intercepts and regression coefficients.
- method
Correlation method: "pearson" (default) or "spearman".
- show_values
Logical. Display correlation values on heatmap? Default TRUE.
- text_size
Numeric. Size of correlation text. Default 3.
Examples
if (FALSE) { # \dontrun{
# Default parameters
plot_parameter_correlation(fit)
# Custom parameters
plot_parameter_correlation(fit, pars = c("mu_index", "mu_comparator", "beta[1]"))
# Without values
plot_parameter_correlation(fit, show_values = FALSE)
} # }