Changelog
Source:NEWS.md
g6tr.segmentation 0.2.14
- Added
engineparameter tott_model_render_tt_xlsx(). The newengine = "excel"path uses Excel-safe dropdown sources and Excel-oriented formulas in allocation tabs, while the default keeps the existing Google Sheets-oriented rendering. - Added
respondent_idas the first column in the “Database Allocation” tab. - Added
database_prefill_nanddatabase_formula_rowsparameters tott_model_render_tt_xlsx()to control how many database allocation rows are prefilled and how many rows are prepared with formulas, validation and styling.
g6tr.segmentation 0.2.13
- Updated underlying
prettyxlsxcalls to stop supplying character values toxlsx_set_colWidth(), which no longer accepts them.
g6tr.segmentation 0.2.12
- New
seg_rack_lca()function to create segments using LCA.
g6tr.segmentation 0.2.11
- New
rack_put_md_stats()andshelf_make_md_stats()functions to compute MaxDiff statistics for segmentation solutions. - Fixed a bug in
rack_segment_alluvial_plot()where color palette assignment respected alphabetical order of segment names rather than the factor level ordering of the segments column. - Added
quietparameter to all render functions to control warnings behavior, allowingrack_render_everything()to suppress expected warnings about missing data while maintaining informative warnings for direct function calls.
g6tr.segmentation 0.2.9
New set of functions for detecting response scale bias:
rack_put_feature_counts()- create counting analysis summaries for segmentation features.rack_render_feature_counts()- export counting analysis summaries into a spreadsheet.
g6tr.segmentation 0.2.7
- Replacing
g6tr.survey::data_fct_as_labelled_verbose()withg6tr.survey::fct_data_as_labelled_verbose() - Bumping
g6tr.surveydependency to 0.3.24.
g6tr.segmentation 0.2.6
- New function
shelf_make_harvey_balls_xlsx()for automating the harvey balls creation process.
g6tr.segmentation 0.2.5
- New vignette on predicting segments on new data.
- Resolved an issue in
tt_model_predict()that caused failures for certain model types when the feature order differed from the original.
g6tr.segmentation 0.2.4
- New functions
shelf_make_complete_tt_stats()andshelf_make_complete_tt_model()for evaluating and fitting complete typing tools, i.e. models using all available features.
g6tr.segmentation 0.2.3
- New functions
rack_put_factor_analysis(),rack_render_factor_analysis()for factor analysis.
g6tr.segmentation 0.2.2
- Added code improvement to facilitate usage of factor feature columns in
pack_model_data. - Moved
fct_as_labelled(),fct_explicit_na_auto()andfct_to_sequential()tog6tr.survey.
g6tr.segmentation 0.2.0
- Removed all functions that are now in the
prettyxlsxpackage. - “Typing Tool” tabs in the spreadsheet summary are now merged into one.
- “Feature Importance” tabs in the spreadsheet summary are now merged into one.
- Added column filters to wide and tall index tabs.
g6tr.segmentation 0.1.8
- More appropriate documentation and error message about factor feature columns in
pack_model_data().
g6tr.segmentation 0.1.6
- Fixed a bug in brier score calculation when segments have names.
- Fixed incorrect styling, merging and column sizing in xlsx TT “Performance” tab for when number of segments != 3.
- Adaptive note sizing in xlsx TT “Performance” tab.
- New Gradient logo in xlsx TT “Overview”
g6tr.segmentation 0.1.5
- New
rack_segment_alluvial_plot()function to visualize segments flow from model to model. - New
rack_align_segments()function to reorder segments in a rack such that segment drift between consecutive models is minimized. This function is already integrated intoseg_rack_nmf(). -
fct_align_levels()factor aligning function was implemented for the above and may useful on its own. - New
rack_extract_pairwise_segment_breakdown()function to extract pairwise segment breakdowns between consecutive models. - Added
rack_segment_alluvial_plot()andrack_extract_pairwise_segment_breakdown()outputs to the standard “Segment Breakdowns” summary page, created withrack_render_segment_breakdown(). -
xlsx_writeData()now does not override existing spreadsheet column widths with smaller values. - Added support for “0.0…0%” percentage formats in automatic column width selection. All percents in the spreadsheet summary are now formatted as “0.0%” instead of “PERCENTAGE”, which is equivalent to “0.00%”.
g6tr.segmentation 0.1.4
- New
tt_model_render_tt_xlsx()function to render a fully spreadsheet-based typing tool.
g6tr.segmentation 0.1.3
New set of functions for working with final TT solutions
tt_stats_extract_spec()- giventt_statfield of a shelf, extract one specification row.shelf_make_tt_model()- pass a shelf and a specification extracted withtt_stats_extract_spec()and get aparsnipmodel object fitted on all the rows available inshelf$data.tt_model_predict()- predicts segments on new data using a TT model fitted withshelf_make_tt_model(), check new data parameters against original data.tt_model_archive()andtt_model_archive_read()to help with organizing stored TTs.
g6tr.segmentation 0.1.2
Bug fixes
- Brought back
labelcolumn toshelf_make_indices_boxed()output. - Fixed a bug in brier score calculation when not all segments are present in data.
- Some segments in an NMF model may happen to be empty. In such a case NMF predict method drops them from factor levels of the vector of assigned segments. Added a fix to bring such segments back.
- TT models are now run with parsnip control
catch = TRUEwhich in case of an error captures the error message and doesn’t break the execution. Updatedmetric_*functions to handle failed model fits without breaking. -
xlsx_find_best_colWidth()now doesn’t fail when a column consists of all NaN-s.
New features
- New
modelsparameter intt_get_model_specs(),shelf_make_tt_stats()andrack_put_tt_stats()to allow selecting a subset of TT models.
g6tr.segmentation 0.1.1
Supplemental data in index summaries
More robust usage of supplemental dataframes in boxed and detailed index summaries. This means that when you pass a dataframe to data argument of *_indices_boxed() and *_inices_detailed() functions, the dataframe will be checked:
- to have a column named exactly “id”, which will be used for joining the supplemental data
- this column must have a compatible class with “id” column of the original model data. The compatibility is defined in terms of
dplyrjoin functions. - if the supplemental data does not contain all the cases of the original model data, user will be given a warning.
Other updates to detailed and boxed index functions
- Added
na.rmparameter which is passed tog6tr.survey::srv_prop_stats_crossing()when indices are calculated. -
rack_render_indices_detailed()now handles printing of missing levels. By default missing levels are displayed as “(Missing)”. - Warning when some of the columns have too many levels – in the first place to detect accidental usage of continuous columns in index summaries.