Description Usage Arguments Details Value Examples

This function computes the slope heuristic for a set of objects obtained by the function `hddc`

. The slope heuristic is a criterion in which the likelihood is penalized according to the result of the fit of the likelihoods on the complexities of the models.

1 | ```
slopeHeuristic(x, plot = FALSE)
``` |

`x` |
An |

`plot` |
Logical, default is |

This function is only useful if there are many models (at least 3, better if more) that were estimated by the function `hddc`

. If there are less than 2 models, the function wil l return an error.

A list of two elements:

`best_model_index` |
The index of the best model, among all estimated models. |

`allCriteria` |
The data.frame containing all the criteria, with the new slope heuristic. |

1 2 3 4 5 6 |

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.