mfrmr_example_data: Purpose-built example datasets for package help pages

mfrmr_example_dataR Documentation

Purpose-built example datasets for package help pages

Description

Compact synthetic many-facet datasets designed for documentation examples. Both datasets are large enough to avoid tiny-sample toy behavior while remaining fast in ⁠R CMD check⁠ examples.

Format

A data.frame with 6 columns:

Study

Example dataset label ("ExampleCore" or "ExampleBias").

Person

Person/respondent identifier.

Rater

Rater identifier.

Criterion

Criterion facet label.

Score

Observed category score on a four-category scale (14).

Group

Balanced grouping variable used in DFF/DIF examples ("A" / "B").

Details

Available data objects:

  • mfrmr_example_core

  • mfrmr_example_bias

mfrmr_example_core is generated from a single latent trait plus rater and criterion main effects, making it suitable for general fitting, plotting, and reporting examples.

mfrmr_example_bias starts from the same basic design but adds:

  • a known ⁠Group x Criterion⁠ effect (⁠Group B⁠ is advantaged on Language)

  • a known ⁠Rater x Criterion⁠ interaction (⁠R04 x Accuracy⁠)

This lets differential-functioning and bias-analysis help pages demonstrate non-null findings.

Data dimensions

Dataset Rows Persons Raters Criteria Groups
example_core 768 48 4 4 2
example_bias 384 48 4 4 2

Suggested usage

  • Use mfrmr_example_core for fitting, diagnostics, design-weighted precision curves, and generic plots/reports.

  • Use mfrmr_example_bias for analyze_dff(), analyze_dif(), dif_interaction_table(), plot_dif_heatmap(), and estimate_bias().

Both objects can be loaded either with load_mfrmr_data() or directly via data("mfrmr_example_core", package = "mfrmr") / data("mfrmr_example_bias", package = "mfrmr").

Source

Synthetic documentation data generated from rating-scale Rasch facet designs with fixed seeds in data-raw/make-example-data.R.

Examples

data("mfrmr_example_core", package = "mfrmr")
table(mfrmr_example_core$Score)
table(mfrmr_example_core$Group)

mfrmr documentation built on March 31, 2026, 1:06 a.m.