compute_P: Number of model effects

View source: R/choice_effects.R

compute_PR Documentation

Number of model effects

Description

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.


choicedata documentation built on Nov. 5, 2025, 5:46 p.m.