get_constructor: Get tidybayes constructor from an NIW IBBU stanfit.

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

get_constructorR Documentation

Get tidybayes constructor from an NIW IBBU 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(fit, variable = NULL)

get_category_constructor(fit)

get_group_constructor(fit)

get_cue_constructor(fit)

get_cue2_constructor(fit)

Arguments

fit

NIW_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_original_variable_levels_from_stanfit


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