Description Usage Arguments Details Value Author(s) Examples

View source: R/calc_functions.R

Integrates information from several fit indices, and selects the best model.

1 2 3 4 5 |

`fitindices` |
A matrix or data.frame of fit indices, with colnames
corresponding to the indices named in |

`relative_importance` |
A named numeric vector. Names should correspond to
columns in |

Many fit indices are available for model selection. Following the procedure developed by Akogul and Erisoglu (2017), this function integrates information from several fit indices, and selects the best model, using Saaty's (1990) Analytic Hierarchy Process (AHP). Conceptually, the process consists of the following steps:

For each fit index, calculate the amount of support provided for each model, relative to the other models.

From these comparisons, obtain a "priority vector" of the amount of support for each model.

Compute a weighted average of the priority vectors for all fit indeces, with weights based on a simulation study examining each fit index' ability to recover the correct number of clusters (Akogul & Erisoglu, 2016).

Select the model with the highest weighted average priority.

Numeric.

Caspar J. van Lissa

1 2 3 4 | ```
iris[,1:4] %>%
estimate_profiles(1:4) %>%
get_fit() %>%
AHP()
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.