get_exposure_category_statistic: Get exposure category statistic from ideal adaptor stanfit

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

get_exposure_category_statisticR Documentation

Get exposure category statistic from ideal adaptor stanfit

Description

Returns the category means mu and/or category covariance matrix Sigma for the exposure data for an ideal_adaptor_stanfit.

Usage

get_exposure_category_statistic(x, ...)

get_exposure_category_mean(x, ...)

get_exposure_category_css(x, ...)

get_exposure_category_uss(x, ...)

get_exposure_category_cov(x, ...)

## S3 method for class 'ideal_adaptor_stanfit'
get_exposure_category_statistic(
  x,
  categories = get_category_levels(x),
  groups = get_group_levels(x, include_prior = FALSE),
  statistic = c("n", "mean", "css", "uss", "cov"),
  untransform_cues = FALSE,
  ...
)

## S3 method for class 'ideal_adaptor_stanfit'
get_exposure_category_mean(...)

## S3 method for class 'ideal_adaptor_stanfit'
get_exposure_category_css(...)

## S3 method for class 'ideal_adaptor_stanfit'
get_exposure_category_uss(...)

## S3 method for class 'ideal_adaptor_stanfit'
get_exposure_category_cov(...)

Arguments

x

An ideal_adaptor_stanfit.

...

additional arguments to get_staninput.

categories

Character vector with categories for which category statistics are to be returned. (default: all categories)

groups

Character vector with groups for which category statistics are to be returned. (default: all groups except '"prior"')

statistic

Which exposure statistic should be returned? 'n' for number of observations, 'mean' for category mean, 'css' or 'uss' for centered or uncentered category sum-of-square matrix, 'cov' for the category covariance matrix, or a character vector with any combination thereof. (default: all)

untransform_cues

DEPRECATED. Should statistics be transformed back into the original cue space? (default: 'FALSE')

Value

If just one group and category was requested, a vector (for the mean) or matrix (for the covariance matrix). If more than one group or category was requested, a tibble with one row for each unique combination of group and category.

See Also

TBD


hlplab/MVBeliefUpdatr documentation built on July 5, 2025, 6:42 a.m.