Model Brand Performance on One Attribute
Source:R/brand_model_attribute_performance.R
brand_model_attribute_performance_single.Rdbrand_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
brmsfamily. 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().