Computes the multinomial log-likelihood of observed counts against four theoretical distributions (uniform, triangular, normal-like, and exponential/Pareto-like) and returns AIC and DeltaAIC values.
shape_aic(df, var, rate_exp = 0.7, eps = 1e-12)A data.frame with columns: Shape, AIC, DeltaAIC.
A data.frame or tibble containing the nominal variable.
Character string giving the name of the nominal variable in df.
Numeric. Default exponential rate. Only used if tail not clearly exponential.
Small numeric value added to probabilities to avoid log(0). Default is 1e-12.