Skip to contents

Data used in examples

Usage

example_seg_df

example_demo_data

example_seg_pack

example_seg_rack

example_seg_rack_extended

example_seg_shelf

example_tt_model

example_md_parsed_data_for_seg

example_lca_data

Format

example_seg_df

A flat dataframe with:

  • id column response_id

  • column with weights weight

  • demo columns s_age and s_gender

  • segmentation columns m2_*

example_demo_data

Only id column and demo columns from example_seg_df. response_id is renamed to id.

example_seg_pack

example_seg_df packed with pack_model_data:

  • id column = response_id in original data

  • weight column

  • x dataframe-column containing all segmentation variables To reduce the time it takes to run the example, only the first 100 rows are taken.

example_seg_rack

A result of running seg_rack_nmf on example_seg_pack with n_seg = 3:5 and nrun = 5.

example_seg_rack_extended

example_seg_rack extended with

example_seg_shelf

First shelf (= first row) extracted from example_seg_rack_extended using rack_extract_shelf.

example_tt_model

A typing tool model built on example_seg_shelf data base on the spec with the highest assessed accuracy using shelf_make_tt_model.

example_md_parsed_data_for_seg

A tidy MaxDiff response dataset for the same respondents as in example_seg_df. It is already in the long format expected by the modelling helpers of the g6tr.md package. Key columns include respondent id, case weight, MaxDiff block, display_order, presented item and chosen answer. Use it directly with g6tr.md::md_model() to compute MaxDiff statistics for segmentation examples.

example_lca_data

A flat dataframe with:

  • id column response_id

  • segmentation columns q_*, used_brand_*, attr_*