count_models

pyoptex.analysis.estimators.sams.entropy.count_models(max_model, model_size, model=None)[source]

Counts the number of models of a given size in the max model assuming weak heredity.

Warning

This assumes weak heredity!

Parameters

max_model(n_main, n_tfi, n_quad)

The number of main, tfi and quadratic effects in the main model. Each time the total amount.

model_sizeint

The size of the overfitted models.

model(me_pp, me_pm, me_mm, mtfi, mquad)

The submodel parameters. - me_pp: The number of effects that can create quadratic and TFI - me_pm: The number of effects that can only create TFI - me_mm: The number of effects that cannot create quadratic or TFI - mtfi: The number of TFI - mquad: The number of quadratic effects

Returns

nb_modelsint

The number of hereditary models with the specified submodel.