print_irt_stan: View a table of selected parameter posteriors after using...

Description Usage Arguments Examples

View source: R/fitting_functions.R

Description

View a table of selected parameter posteriors after using irt_stan

Usage

1
print_irt_stan(fit, data_list = NULL, ...)

Arguments

fit

A stanfit-class object created by irt_stan.

data_list

An optional Stan data list created with irt_data. If provided, the printed posterior summaries for selected parameters are grouped by item. Otherwise, ungrouped results are provided, which may be preferred, for example, for the Rasch or rating scale models.

...

Additional options passed to print.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# 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 table of parameter posteriors
print_irt_stan(twopl_fit, spelling_list)
# Or
print_irt_stan(twopl_fit)

## End(Not run)


edstan documentation built on May 19, 2017, 3:26 p.m.
Search within the edstan package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.