TwoPLRank#
- class pyfcirt.TwoPLRank(
- *,
- priors: Mapping[str, TensorVariable] | None = None,
- reference_statements: tuple = (),
Sequential choice with monotone 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-intercept references. Default:
()for preparation’s choice.
Returns#
- TwoPLRank
A measurement declaration for
FCInput(..., model=declaration). Pass the configured declaration as themodelvalue when loading a bundled dataset.
Notes#
Choose RANK, PICK or MOLE in the input. Full ranks multiply the probabilities of selecting each statement from those remaining. For a partial event the law sums over compatible complete orders.
Default priors for active roles:
Prior role |
Default law |
|---|---|
|
LogNormal(mu=0, sigma=0.5) |
|
Normal(mu=0, sigma=2) |
Examples#
import pyfcirt as fc
declaration = fc.TwoPLRank()
example = fc.load_example("simulated_two_pl_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
TwoPLRank / rank 24 3 3 72 0