get_test_data_from_stanfit: Get the test data from an NIW ideal adaptor stanfit.

View source: R/get-info-from-NIW-IA-stanfit.R

get_test_data_from_stanfitR Documentation

Get the test data from an NIW ideal adaptor stanfit.

Description

Returns the test data used during the creation of the stanfit. object.

Usage

get_test_data_from_stanfit(
  fit,
  groups = get_group_levels_from_stanfit(fit, include_prior = FALSE)
)

Arguments

groups

Character vector of groups for which test data is requested. Typically, the levels of these factors are automatically added to the fit during the creation of the fit. If necessary, however, it is possible to use recover_types on the stanfit object to add or change these levels later. (default: all categories/groups will be selected)

x

NIW_ideal_adaptor_stanfit object.

Value

A tibble in which each row is a test token. Columns include the cues and the response counts (one column per category) for all test tokens and all groups.

See Also

TBD


hlplab/MVBeliefUpdatr documentation built on March 29, 2025, 10:42 p.m.