Make factor analysis features table for a rack shelf
Source:R/make_factor_analysis.R
shelf_make_factor_analysis_feature.RdGiven a rack shelf containing a factor analysis model, calculate
factor analysis feature summary as a dataframe with five columns,
factor, feature, label, uniqueness and loading where loading
is a packed dataframe with one column per each factor.
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 the field containing the factor analysis model to calculate feature stats for.
Examples
shelf_make_factor_analysis_feature(example_seg_shelf, fa_id = "factor_analysis_model_4")
#> # A tibble: 54 × 4
#> feature label uniqueness loading$Factor1
#> <chr> <chr> <dbl> <dbl>
#> 1 m2_5_42 I consider what I need more than what I w… 0.425 -0.0384
#> 2 m2_5_41 I try my best to stick to my monthly budg… 0.436 -0.139
#> 3 m2_1_5 I feel like I’m too much of a burden on t… 0.449 0.711
#> 4 m2_6_56 Credit cards are designed to hurt card ho… 0.470 0.415
#> 5 m2_6_57 I love having a credit card because it gi… 0.471 0.122
#> 6 m2_2_14 Being unique is important to me 0.472 0.202
#> 7 m2_5_38 I prefer to prioritize convenience over p… 0.535 0.643
#> 8 m2_4_32 I feel confident about my ability to man… 0.541 -0.0908
#> 9 m2_5_43 I like to know all the details about a pr… 0.545 0.0779
#> 10 m2_6_54 I usually pay the minimum monthly payment… 0.557 0.556
#> # ℹ 44 more rows
#> # ℹ 3 more variables: loading$Factor2 <dbl>, $Factor3 <dbl>, $Factor4 <dbl>