Skip to contents

brand_model_attribute_performance_single() fits one ordinal performance model for a selected attribute and returns brand-level random-effect summaries.

Usage

brand_model_attribute_performance_single(
  attribute_data,
  attribute_name,
  score_name,
  na_replace = NA,
  family = NULL,
  warmup = 500,
  iter = 2000,
  chains = 4,
  init = "0",
  cores = 4,
  seed = 123,
  ...
)

Arguments

attribute_data

A data frame containing response_id, brand, attribute, and one numeric score column.

attribute_name

Attribute label to model. This must match attribute.

score_name

Numeric score column to use.

na_replace

Value used to impute missing scores. NA (default) drops rows with a missing score for this attribute.

family

Optional brms family. Defaults to cumulative logit.

warmup

Number of warmup iterations per chain.

iter

Number of post-warmup sampling iterations per chain.

chains

Number of chains.

init

Initialization passed to brms::brm().

cores

Number of cores passed to brms::brm().

seed

Random seed.

...

Additional arguments passed to brms::brm().

Value

A list with attr_model, attr_effect, and input.