get_exposure_test_data: Get the exposure and/or test data from an ideal adaptor...

get_dataR Documentation

Get the exposure and/or test data from an ideal adaptor stanfit.

Description

Returns the exposure and/or test data used during the creation of the stanfit. object.

Usage

get_data(x, ...)

## S3 method for class 'ideal_adaptor_stanfit'
get_data(
  x,
  groups = get_group_levels(x, include_prior = FALSE),
  .rename_to_MVB_default = FALSE,
  ...
)

get_exposure_data(x, ...)

## S3 method for class 'ideal_adaptor_stanfit'
get_exposure_data(x, groups = get_group_levels(x, include_prior = FALSE), ...)

get_test_data(x, ...)

## S3 method for class 'ideal_adaptor_stanfit'
get_test_data(
  x,
  groups = get_group_levels(x, include_prior = FALSE),
  .from_staninput = FALSE,
  ...
)

Arguments

x

ideal_adaptor_stanfit object.

...

additional arguments to get_staninput.

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)

.rename_to_MVB_default

Should the data columns be renamed to the default names used internally in 'MVBeliefUpdatr'? his option is included primarily for internal use. (default: 'FALSE')

.from_staninput

Should the data be extracted from the staninput (rather than data) object stored in the stanfit object? This returns the data in a somewhat different format. This option is included primarily for internal use. (default: 'FALSE')

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 July 5, 2025, 6:42 a.m.