Skip to contents

These helper functions count the number of model effects:

  • compute_P() returns the total number P of model effects.

  • compute_P_d() returns the number P_d of non-random effects.

  • compute_P_r() returns the number P_r of random effects.

Usage

compute_P(choice_effects)

compute_P_d(choice_effects)

compute_P_r(choice_effects)

Arguments

choice_effects

[choice_effects]
A choice_effects object.

Value

An integer, the number of model effects.