relativeLikelihood: Calculate relative likelihood.

View source: R/models.R

relativeLikelihoodR Documentation

Calculate relative likelihood.

Description

This function calculate a relative log likelihood using criterion values for a set of models. The criterion should indicate a better model for a lower value.

Usage

relativeLikelihood(crit)

Arguments

crit

Vector of criterion values for models.

Details

If the input vector is named, the output vector will also be named.

Value

Vector of likelihoods. The best model will have a likelihood of 1, and models with likelihoods lower than 0.05 could be considered "significantly" worse than the best model.

Examples

#

thartbm/handlocs documentation built on Feb. 18, 2025, 10:53 p.m.