50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

rtkpp (version 0.8.5)

clusterGammaNames: Build a vector of gamma model names.

Description

In a gamma model, we can assume that the shapes are equal in each/all cluster(s) or not. We can also assume that the scales are equal in each/all cluster(s) or not.

check if a vector of gamma model name is correct.

Usage

clusterGammaNames(prop = "all", shapeInCluster = "all",
  shapeBetweenCluster = "free", scaleInCluster = "all",
  scaleBetweenCluster = "all")

clusterValidGammaNames(names)

Arguments

prop
A character string equal to "equal", "free" or "all". Default is "all".
shapeInCluster
A character string equal to "equal", "free" or "all". Default is "all".
shapeBetweenCluster
A character string equal to "equal", "free" or "all". Default is "free".
scaleInCluster
A character string equal to "equal", "free" or "all". Default is "all".
scaleBetweenCluster
A character string equal to "equal", "free" or "all". Default is "all".
names
a vector of character

Value

  • A vector of character with the model names.

tabular

lllll

Details

Some configuration are impossibles. If the shapes are equal between all the clusters, then the scales cannot be equal between all the clusters. Conversely if the scales are equal between all the cluster, then the shapes cannot be equal between all the clusters.

This gives rise to 24 models:

  1. The proportions can be equal or free.
The shapes can be equal or free in each clusters. The shapes can be equal or free between all clusters. The scales can be equal or free for each clusters. The scales can be equal or free between all clusters.

Examples

Run this code
clusterGammaNames()
## same as c("gamma_p_ak_bj", "gamma_pk_ak_bj")
clusterGammaNames("all", "equal", "free", "free", "equal")

Run the code above in your browser using DataLab