GGUMRank#
- class pyfcirt.GGUMRank(
- *,
- priors: Mapping[str, TensorVariable] | None = None,
- reference_statements: tuple = (),
Sequential choice with ideal-point statement endorsement.
Parameters#
priors: mapping or NoneOverride local prior roles with unnamed PyMC distributions such as
pm.Normal.dist(mu=0, sigma=1).Noneuses the defaults below.reference_statements: tupleStatement IDs to use as zero-threshold references. Default:
()for preparation’s choice.
Returns#
- GGUMRank
A measurement declaration for
FCInput(..., model=declaration). Pass the configured declaration as themodelvalue when loading a bundled dataset.
Notes#
Supports RANK, PICK and MOLE. In the design supply a location_side per
statement: +1 for a positive ideal point, −1 for negative and 0 for
unrestricted. A custom location prior replaces the corresponding sign-specific
default.
Default priors for active roles:
Prior role |
Default law |
|---|---|
|
LogNormal(mu=0, sigma=0.25) |
|
TruncatedNormal(mu=2, sigma=1, lower=0, upper=inf) |
|
TruncatedNormal(mu=-2, sigma=1, lower=-inf, upper=0) |
|
Normal(mu=0, sigma=1) |
|
Normal(mu=0, sigma=2) |
Examples#
import pyfcirt as fc
declaration = fc.GGUMRank()
example = fc.load_example("simulated_ggum_rank", model=declaration, n_persons=3)
prepared = fc.PreparedInputs.from_inputs(example.data)
print(fc.data_coverage(prepared).to_string())
n_blocks size n_persons n_answered n_missing
model_response_format
GGUMRank / rank 24 3 3 72 0