Skip to contents

Plot the successive eigen values for a scree test.

Usage

model_data_scree_plot(data)

Arguments

data

A packed segmentation data, output of pack_model_data

Examples

seg_data <- pack_model_data(
  example_seg_df,
  id_col = response_id,
  weight_col = weight,
  x_cols = starts_with("m2_")
)
#> ✔ Converted 54 <factor> columns to <labelled numeric>: m2_1_1, m2_1_2, m2_1_3, m2_1_4, m2_1_5, m2_1_6, m2_1_7, m2_2_8, m2_2_9, m2_2_10, m2_2_11, m2_2_12, m2_2_13, m2_2_14, m2_2_16, m2_3_17, m2_3_18, m2_3_19, …, m2_6_56, and m2_6_57.
#> 
#> ── Summary of mapping for 54 <labelled> columns ────────────────────────────────
#> 
#> [54 columns] All columns:
#>   1: Strongly disagree
#>   2: Somewhat disagree
#>   3: Somewhat agree
#>   4: Strongly agree
#> 

model_data_scree_plot(seg_data)