Skip to contents

Given a rack shelf containing a factor analysis model, calculate factor analysis segments summary as a dataframe with segment column and one column per factor containing

Usage

shelf_make_factor_analysis_segment(shelf, fa_id)

Arguments

shelf

A rack shelf, or in other words, a row of a model rack extracted with rack_extract_shelf().

fa_id

Character. Name of factor analysis model to use to calculate stats.

Examples

shelf_make_factor_analysis_segment(
  example_seg_shelf,
  fa_id = "factor_analysis_model_4"
)
#> # A tibble: 3 × 5
#>   segment Factor1  Factor2 Factor3 Factor4
#>   <fct>     <dbl>    <dbl>   <dbl>   <dbl>
#> 1 Yellow    0.700  0.0823   0.0320 -0.727 
#> 2 Red      -0.611 -0.00534  0.447   0.0760
#> 3 Green     0.542 -0.0551  -0.823   0.435