BlockSpec#
- class pyfcirt.BlockSpec(
- block_id: str | int,
- *,
- model: object | None = None,
- response_format: str | None | EllipsisType = Ellipsis,
- scale: CategoryScale | UnitIntervalScale | None = None,
Change the measurement model, response format or scale for one block.
Parameters#
block_id: str or intBlock’s ID in the design.
model: str, measurement specification or NoneLocal response model.
Noneinherits the design or input default.response_format: {“rank”, “pick”, “mole”}, None or EllipsisLocal task. The default
...inherits. ExplicitNonedeclares separate pair judgments.scale: CategoryScale, UnitIntervalScale or NoneLocal preference scale.
Noneinherits.
Returns#
- BlockSpec
One override in
FCInput(..., blocks=(override,)). Other blocks keep their settings.
Examples#
Declare B4 as a TwoPLRank block that records the most and least preferred statements.
import pyfcirt as fc
override = fc.BlockSpec("B4", model="TwoPLRank", response_format="mole")
print(override.block_id, override.model, override.response_format)
B4 TwoPLRank mole