plot.icm_stanfit {intervalpsych} | R Documentation |
Plot Method for icm_stanfit Objects
Description
This function provides a plot method for objects of class icm_stanfit
.
Usage
## S3 method for class 'icm_stanfit'
plot(x, ...)
Arguments
x |
An object of class |
... |
Additional arguments passed to the |
Value
A plot generated by the plot_consensus()
function.
See Also
Examples
# Create minimal example data
df_simplex <- data.frame(
x1 = c(0.3, 0.4, 0.2, 0.5),
x2 = c(0.3, 0.2, 0.4, 0.2),
x3 = c(0.4, 0.4, 0.4, 0.3)
)
id_person <- c(1, 1, 2, 2)
id_item <- c(1, 2, 1, 2)
# Fit ICM model
fit <- fit_icm(df_simplex, id_person, id_item, n_chains = 1,
iter_sampling = 100, iter_warmup = 100,
refresh = 0)
# Plot using S3 method
plot(fit)
[Package intervalpsych version 0.1.0 Index]