Skip to contents

brand_create() initializes a minimal brand analysis object with a base respondent-by-brand panel, default weights, and empty containers for funnel, attribute, NPS, and model results.

Usage

brand_create(respondents, brands)

Arguments

respondents

Character vector of respondent identifiers.

brands

Factor or character vector of brand labels. If a factor is supplied, its level order is preserved. Character input keeps first-seen order. Brands are never alphabetically sorted.

Value

An object of class g6tr_brand.

Examples

brand <- brand_create(
  respondents = c("1002", "1001"),
  brands = factor(
    c("Nike", "Adidas", "Puma"),
    levels = c("Puma", "Nike", "Adidas")
  )
)
#> ✔ Created brand analysis object: 2 respondents x 3 brands = 6 panel rows.

brand
#> 
#> ── Brand Analysis ──────────────────────────────────────────────────────────────
#> Respondents: 2
#> Brands: 3 ("Puma", "Nike", and "Adidas")
#> Funnel stages: 0 (use `brand_add_funnel_stage()` to add them)
#> NPS attached: FALSE (use `brand_add_nps()` to add NPS data)
#> Attributes: 0 (use `brand_add_attributes()` to attach them)
#> Weights: all 1
#> Data: 0 additional columns attached
#> Effect models: 0
#> Performance models: 0