Description Usage Arguments Value See Also Examples
View source: R/fitting_functions.R
View a plot of summary statistics after using irt_stan
1 | stan_columns_plot(fit, stat = "Rhat", ...)
|
fit |
A |
stat |
A string for the statistic from the |
... |
Additional options (such as |
A ggplot
object.
See stan_rhat
, which provides a histogram of
Rhat statistics.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # Make a suitable data list:
spelling_list <- irt_data(response_matrix = spelling[, 2:5],
covariates = spelling[, "male", drop = FALSE],
formula = ~ 1 + male)
## Not run:
# Fit a latent regression 2PL
twopl_fit <- irt_stan(spelling_list, model = "2pl_latent_reg.stan",
iter = 300, chains = 4)
# Get a plot showing Rhat statistics
rhat_columns(twopl_fit)
# Get a plot showing number of effective draws
rhat_columns(twopl_fit, stat = "n_eff")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.