Data and design#

Declare what each block or item measures and how the answers are stored. Register your tables with model.add_fc() or model.add_items(), then call model.prepare().

Examples and data summaries#

load_example

Read bundled data with a caller-selected current measurement declaration.

data_coverage

Summarize recorded administrations, deduplicating people across model groups.

Design and response options#

FCDesignMapping

Map traits and blocks to their ordered statement lists.

ItemDesignMapping

Map traits to item lists; an item may load on more than one trait.

BlockSpec

Override one block; omitted response_format inherits and explicit None clears it.

ItemOverride

Override the measurement law or complete category scale for one item.

CategoryScale

Complete categories, in increasing preference for first or second statement.

UnitIntervalScale

Continuous responses strictly between zero and one.

ComparisonColumn

Declare the meaning of a wide column without parsing its label.

ExampleData

Fresh inputs, matched optional companion tables, and source metadata.

Explicit inputs and prepared data#

FCInput and ItemInput let you assemble input declarations separately and pass them to model.prepare(). Use PreparedInputs.from_inputs() if you need the prepared data independently of the model.

FCInput

Declare a test and responses; discrete response_format=None defaults to binary 0/1.

ItemInput

Declare item-by-trait membership, response laws and recorded answers.

ResponseTable

Declare response-table columns and their storage layout.

PreparedInputs

Validated runtime inputs; native declarations and encoders are never persisted.

from_inputs

Prepare declarations, coordinates and optional regressions before graph creation.

generation_schedule

Return complete unobserved events and frozen population inputs for new people.