information#
- pyfcirt.information(
- model,
- *,
- parameters=None,
- draw=None,
- theta=None,
- include_intermediates=False,
- store=True,
- progressbar=True,
Evaluate expected likelihood Fisher information at a parameter point.
Parameters#
model: ModelPrepared model defining responses and parameter coordinates.
parameters: xarray.Dataset or NoneLabelled final parameter point with no sample axes.
Noneuses the fitted posterior point. The explicit route works with non-MCMC estimates on the same final coordinates.draw: tuple or NoneOne
(chain_label, draw_label)to use instead of posterior means. Applies when reading the point from the model.theta: xarray.DataArray or NoneOptional ability evaluation point labelled
(person, trait).Noneuses the model’s final ability values.include_intermediates: boolInclude per-observation information and category/shape derivatives. Default:
False.store: boolPublish the result to
model.idata.information. Default:True.progressbar: boolDisplay evaluation progress. Default:
True.
Returns#
- xarray.Dataset
test_information(person, trait, trait_aux)sums answered units per person. Block and item totals also retain their unit axis.observation_information(obs, trait, trait_aux)is optional.
Notes#
This is expected likelihood information conditional on calibration. It excludes prior precision. TIRT sums its comparison contributions; the resulting matrix describes its fitted comparison factors.
Examples#
Use a fitted Model. The output below comes from the HEXACO TIRT example.
Inspect the first respondent’s test information. The example selects two traits from the full matrix to display.
info = model.information(store=False, progressbar=False)
matrix = info.test_information.isel(
person=0,
trait=slice(0, 2),
trait_aux=slice(0, 2),
)
print(matrix.to_pandas().round(2).to_string())
trait_aux honestyhumility openness
trait
honestyhumility 4.29 -0.36
openness -0.36 3.30