get_constructor: Get tidybayes constructor from an ideal adaptor stanfit.

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

get_constructorR Documentation

Get tidybayes constructor from an ideal adaptor stanfit.

Description

Gets the tidybayes constructor function from the stanfit object. 'get_category_constructor()' and 'get_group_constructor()' are convenience functions, calling 'get_constructor()'. See recover_types. If variable is

Usage

get_constructor(x, variable = NULL)

get_category_constructor(x)

get_group_constructor(x)

get_cue_constructor(x)

get_cue2_constructor(x)

Arguments

x

ideal_adaptor_stanfit object.

variable

Either "category" or "group". If set to 'NULL' then a list of all constructors is returned. That list is 'NULL' if not tidybayes constructors are found in fit. (default: c("category", "group"))

Value

A constructor function, a list of constructor functions, or 'NULL'. If a specific constructor function is requested but not found, a warning is shown.

See Also

recover_types from tidybayes, get_staninput_variable_levels


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