flexpyirt 0.1.0__tar.gz → 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (416) hide show
  1. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/.gitignore +2 -0
  2. flexpyirt-0.2.0/CITATION.cff +29 -0
  3. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/CONTRIBUTING.ja.md +19 -6
  4. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/CONTRIBUTING.md +23 -9
  5. flexpyirt-0.2.0/PKG-INFO +227 -0
  6. flexpyirt-0.2.0/README.ja.md +185 -0
  7. flexpyirt-0.2.0/README.md +193 -0
  8. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/benchmarks/README.ja.md +25 -0
  9. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/benchmarks/README.md +28 -0
  10. flexpyirt-0.2.0/benchmarks/emm_3pl.py +230 -0
  11. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/benchmarks/report.py +3 -1
  12. flexpyirt-0.2.0/benchmarks/results/2026-11-28-emm-3pl.json +7398 -0
  13. flexpyirt-0.2.0/benchmarks/results/2026-11-28-emm-3pl.md +57 -0
  14. flexpyirt-0.2.0/benchmarks/run_batched.py +196 -0
  15. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/benchmarks/run_flexpyirt.py +52 -5
  16. flexpyirt-0.2.0/benchmarks/sparse_grid.py +97 -0
  17. flexpyirt-0.2.0/benchmarks/sparse_grid_mirt.R +24 -0
  18. flexpyirt-0.2.0/benchmarks/sparse_grid_study.py +324 -0
  19. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/accuracy.ja.md +52 -5
  20. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/accuracy.md +59 -5
  21. flexpyirt-0.2.0/docs/case-studies.ja.md +28 -0
  22. flexpyirt-0.2.0/docs/case-studies.md +30 -0
  23. flexpyirt-0.2.0/docs/citation.ja.md +51 -0
  24. flexpyirt-0.2.0/docs/citation.md +55 -0
  25. flexpyirt-0.2.0/docs/comparison.ja.md +40 -0
  26. flexpyirt-0.2.0/docs/comparison.md +42 -0
  27. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/dev/API.ja.md +13 -2
  28. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/dev/API.md +13 -2
  29. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/dev/DESIGN.ja.md +1093 -290
  30. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/dev/DESIGN.md +1416 -372
  31. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/dev/ROADMAP.ja.md +24 -1
  32. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/dev/ROADMAP.md +29 -1
  33. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/dev/VALIDATION.ja.md +58 -74
  34. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/dev/VALIDATION.md +66 -99
  35. flexpyirt-0.1.0/README.ja.md → flexpyirt-0.2.0/docs/features.ja.md +61 -182
  36. flexpyirt-0.2.0/docs/features.md +99 -0
  37. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/guide.ja.md +324 -13
  38. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/guide.md +372 -13
  39. flexpyirt-0.2.0/docs/images/readme/information.png +0 -0
  40. flexpyirt-0.2.0/docs/images/readme/item_curves.png +0 -0
  41. flexpyirt-0.2.0/docs/index.ja.md +163 -0
  42. flexpyirt-0.2.0/docs/index.md +168 -0
  43. flexpyirt-0.2.0/docs/mirt-users.ja.md +162 -0
  44. flexpyirt-0.2.0/docs/mirt-users.md +171 -0
  45. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/reference.ja.md +253 -27
  46. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/reference.md +288 -31
  47. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/theory.ja.md +60 -0
  48. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/theory.md +72 -0
  49. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/mkdocs.yml +10 -0
  50. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/pyproject.toml +3 -0
  51. flexpyirt-0.2.0/scripts/readme_figures.py +50 -0
  52. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/__init__.py +8 -1
  53. flexpyirt-0.2.0/src/flexpyirt/_batch.py +389 -0
  54. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_compile.py +370 -139
  55. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_core.py +1431 -329
  56. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_dif.py +34 -18
  57. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_equating.py +54 -0
  58. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_jsi.py +1 -2
  59. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_json.py +110 -8
  60. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_linking.py +54 -21
  61. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_newton.py +74 -31
  62. flexpyirt-0.2.0/src/flexpyirt/_progress.py +154 -0
  63. flexpyirt-0.2.0/src/flexpyirt/_projection.py +93 -0
  64. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_scoring.py +8 -7
  65. flexpyirt-0.2.0/src/flexpyirt/bootstrap.py +495 -0
  66. flexpyirt-0.2.0/src/flexpyirt/cache.py +93 -0
  67. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/dif.py +81 -2
  68. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/dimensionality.py +69 -8
  69. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/equating.py +227 -3
  70. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/fit.py +434 -26
  71. flexpyirt-0.2.0/src/flexpyirt/inference.py +307 -0
  72. flexpyirt-0.2.0/src/flexpyirt/item_design.py +272 -0
  73. flexpyirt-0.2.0/src/flexpyirt/lagrange.py +126 -0
  74. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/latent.py +45 -6
  75. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/linking.py +218 -2
  76. flexpyirt-0.2.0/src/flexpyirt/method.py +128 -0
  77. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/model.py +155 -4
  78. flexpyirt-0.2.0/src/flexpyirt/projection.py +535 -0
  79. flexpyirt-0.2.0/src/flexpyirt/quadrature.py +293 -0
  80. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/result.py +298 -11
  81. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/simulate.py +6 -2
  82. flexpyirt-0.2.0/tests/reference/sparse_grid/gqn.json +1 -0
  83. flexpyirt-0.2.0/tests/reference/v60_qmc.json +2421 -0
  84. flexpyirt-0.2.0/tests/reference/v61_projection.json +4159 -0
  85. flexpyirt-0.2.0/tests/reference/v62_latent_regression.json +3955 -0
  86. flexpyirt-0.2.0/tests/reference/v63_equating_se.json +258 -0
  87. flexpyirt-0.2.0/tests/reference/v64_bootstrap.json +2748 -0
  88. flexpyirt-0.2.0/tests/reference/v65_wald_plci.json +4123 -0
  89. flexpyirt-0.2.0/tests/reference/v66_lagrange.json +3089 -0
  90. flexpyirt-0.2.0/tests/reference/v67_item_design.json +3564 -0
  91. flexpyirt-0.2.0/tests/test_anderson.py +272 -0
  92. flexpyirt-0.2.0/tests/test_asymptote_mixture.py +238 -0
  93. flexpyirt-0.2.0/tests/test_batched_fits.py +442 -0
  94. flexpyirt-0.2.0/tests/test_bootstrap.py +187 -0
  95. flexpyirt-0.2.0/tests/test_cold_start.py +209 -0
  96. flexpyirt-0.2.0/tests/test_equating_se.py +205 -0
  97. flexpyirt-0.2.0/tests/test_estep_fastpaths.py +247 -0
  98. flexpyirt-0.2.0/tests/test_examples.py +106 -0
  99. flexpyirt-0.2.0/tests/test_item_design.py +103 -0
  100. flexpyirt-0.2.0/tests/test_lagrange.py +143 -0
  101. flexpyirt-0.2.0/tests/test_latent_regression.py +250 -0
  102. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m4_json.py +10 -1
  103. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m4_mirt.py +4 -3
  104. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m5_local_dependence.py +4 -2
  105. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m7_robust_se.py +8 -1
  106. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m7_weights.py +6 -1
  107. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m_step_scale.py +3 -0
  108. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_many_groups.py +67 -5
  109. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m3.py +57 -12
  110. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m4_mirt.py +21 -12
  111. flexpyirt-0.2.0/tests/test_mirt_v60_qmc.py +98 -0
  112. flexpyirt-0.2.0/tests/test_mirt_v61_projection.py +158 -0
  113. flexpyirt-0.2.0/tests/test_mirt_v62_latent_regression.py +181 -0
  114. flexpyirt-0.2.0/tests/test_mirt_v64_bootstrap.py +110 -0
  115. flexpyirt-0.2.0/tests/test_mirt_v65_wald_plci.py +147 -0
  116. flexpyirt-0.2.0/tests/test_mirt_v66_lagrange.py +77 -0
  117. flexpyirt-0.2.0/tests/test_mirt_v67_item_design.py +113 -0
  118. flexpyirt-0.2.0/tests/test_mixed_precision.py +275 -0
  119. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_oakes.py +159 -0
  120. flexpyirt-0.2.0/tests/test_progress.py +181 -0
  121. flexpyirt-0.2.0/tests/test_projection.py +313 -0
  122. flexpyirt-0.2.0/tests/test_quadrature_qmc.py +211 -0
  123. flexpyirt-0.2.0/tests/test_r_equating_se.py +157 -0
  124. flexpyirt-0.2.0/tests/test_sparse_grid.py +86 -0
  125. flexpyirt-0.2.0/tests/test_wald_profile_ci.py +140 -0
  126. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/run_references.sh +5 -1
  127. flexpyirt-0.2.0/validation/r/sparse_grid_reference.R +43 -0
  128. flexpyirt-0.2.0/validation/r/v60_qmc_reference.R +166 -0
  129. flexpyirt-0.2.0/validation/r/v61_projection_reference.R +179 -0
  130. flexpyirt-0.2.0/validation/r/v62_latent_regression_reference.R +151 -0
  131. flexpyirt-0.2.0/validation/r/v63_equating_se_reference.R +95 -0
  132. flexpyirt-0.2.0/validation/r/v64_bootstrap_reference.R +99 -0
  133. flexpyirt-0.2.0/validation/r/v65_wald_plci_reference.R +103 -0
  134. flexpyirt-0.2.0/validation/r/v66_lagrange_reference.R +131 -0
  135. flexpyirt-0.2.0/validation/r/v67_item_design_reference.R +69 -0
  136. flexpyirt-0.2.0/validation/simulation/bootstrap_type1.json +218 -0
  137. flexpyirt-0.2.0/validation/simulation/bootstrap_type1.py +87 -0
  138. flexpyirt-0.1.0/PKG-INFO +0 -263
  139. flexpyirt-0.1.0/README.md +0 -229
  140. flexpyirt-0.1.0/docs/index.ja.md +0 -66
  141. flexpyirt-0.1.0/docs/index.md +0 -69
  142. flexpyirt-0.1.0/src/flexpyirt/method.py +0 -64
  143. flexpyirt-0.1.0/src/flexpyirt/quadrature.py +0 -139
  144. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/LICENSE +0 -0
  145. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/benchmarks/__init__.py +0 -0
  146. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/benchmarks/data.py +0 -0
  147. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/benchmarks/results/2026-11-21-apple-m5.json +0 -0
  148. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/benchmarks/results/2026-11-21-apple-m5.md +0 -0
  149. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/benchmarks/results/2026-11-26-many-groups.json +0 -0
  150. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/benchmarks/results/2026-11-26-many-groups.md +0 -0
  151. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/benchmarks/run_mirt.R +0 -0
  152. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/images/plots/dif.png +0 -0
  153. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/images/plots/expected_score.png +0 -0
  154. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/images/plots/information.png +0 -0
  155. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/images/plots/item_curves.png +0 -0
  156. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/images/plots/wright_map.png +0 -0
  157. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/docs/javascripts/mathjax.js +0 -0
  158. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/scripts/check_plotting_without_matplotlib.py +0 -0
  159. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/scripts/check_pr.py +0 -0
  160. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/scripts/compare_references.py +0 -0
  161. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/scripts/guide_figures.py +0 -0
  162. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/scripts/mkdocs_hooks.py +0 -0
  163. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/scripts/release_version.py +0 -0
  164. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_classification.py +0 -0
  165. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_information.py +0 -0
  166. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_itemfit.py +0 -0
  167. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_local_dependence.py +0 -0
  168. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_m2.py +0 -0
  169. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_personfit.py +0 -0
  170. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_polychoric.py +0 -0
  171. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_precision.py +0 -0
  172. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_robust_se.py +0 -0
  173. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/_screening.py +0 -0
  174. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/classification.py +0 -0
  175. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/comparison.py +0 -0
  176. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/correlation.py +0 -0
  177. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/curves.py +0 -0
  178. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/errors.py +0 -0
  179. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/information.py +0 -0
  180. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/items.py +0 -0
  181. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/plotting.py +0 -0
  182. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/priors.py +0 -0
  183. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/py.typed +0 -0
  184. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/screening.py +0 -0
  185. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/src/flexpyirt/sumscore.py +0 -0
  186. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/__init__.py +0 -0
  187. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/_mirt_multigroup.py +0 -0
  188. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/_reference.py +0 -0
  189. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/conftest.py +0 -0
  190. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/durations-fast.json +0 -0
  191. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/durations.json +0 -0
  192. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/flexpyctt/v24_polychoric.json +0 -0
  193. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/flexpyctt/v27_detect.json +0 -0
  194. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v11_3pl.json +0 -0
  195. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v11_4pl.json +0 -0
  196. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v12_irtpars.json +0 -0
  197. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v13_fscores.json +0 -0
  198. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v14_mirt2d.json +0 -0
  199. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v14_mirt_map.json +0 -0
  200. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v14_mirt_mlwle.json +0 -0
  201. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v15_sx2.json +0 -0
  202. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v15_sx2_multigroup.json +0 -0
  203. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v16_lsat7_common_slope.json +0 -0
  204. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v16_mixed_constraints.json +0 -0
  205. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v16_twogroup_common_slope.json +0 -0
  206. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v17_dif.json +0 -0
  207. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v18_m2.json +0 -0
  208. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v19_davidian_2pl_k3.json +0 -0
  209. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v19_davidian_fipc_k3.json +0 -0
  210. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v19_davidian_grm_k2.json +0 -0
  211. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v1_lsat7_2pl.json +0 -0
  212. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v1_sim_2pl.json +0 -0
  213. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v20_linking.json +0 -0
  214. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v21_mirt_multigroup.json +0 -0
  215. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v22_mixture_2pl_k2.json +0 -0
  216. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v22_mixture_gpcm_k3.json +0 -0
  217. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v22_mixture_grm_k2.json +0 -0
  218. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v23_nominal_2d.json +0 -0
  219. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v23_nominal_mixed.json +0 -0
  220. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v23_nominal_science.json +0 -0
  221. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v23_nominal_sim.json +0 -0
  222. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v23_nominal_unordered.json +0 -0
  223. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v26_local_dependence.json +0 -0
  224. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v26_local_dependence_extensions.json +0 -0
  225. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v2_lsat7_rasch.json +0 -0
  226. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v2_sim_rasch.json +0 -0
  227. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v31_jsi.json +0 -0
  228. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v32_bifactor.json +0 -0
  229. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v33_two_tier.json +0 -0
  230. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v34_weights_2pl.json +0 -0
  231. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v34_weights_bifactor.json +0 -0
  232. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v34_weights_fipc.json +0 -0
  233. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v34_weights_grm.json +0 -0
  234. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v34_weights_twogroup.json +0 -0
  235. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v35_2pl_map.json +0 -0
  236. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v35_2pl_misfit.json +0 -0
  237. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v35_fipc_eh.json +0 -0
  238. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v35_fipc_equal.json +0 -0
  239. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v35_mixed.json +0 -0
  240. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v35_three_factor.json +0 -0
  241. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v35_two_factor.json +0 -0
  242. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v35_twogroup.json +0 -0
  243. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v36_sumscore.json +0 -0
  244. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v37_information.json +0 -0
  245. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v38_local_dependence_bifactor.json +0 -0
  246. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v39_fit_multidim.json +0 -0
  247. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v3_science_grm.json +0 -0
  248. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v40_linking_multidim.json +0 -0
  249. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v40_linking_unidim.json +0 -0
  250. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v42_m2_groups_missing_map.json +0 -0
  251. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v43_information_multidim.json +0 -0
  252. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v45_3pl_logit_norm_map.json +0 -0
  253. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v48_plots.json +0 -0
  254. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v49_dif_screen.json +0 -0
  255. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v4_twogroup_2pl.json +0 -0
  256. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v50_screening.json +0 -0
  257. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v51_irt_equating.json +0 -0
  258. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v52_classification.json +0 -0
  259. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v53_person_fit.json +0 -0
  260. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v54_compare_fits.json +0 -0
  261. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v54_simulate.json +0 -0
  262. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v55_many_groups.json +0 -0
  263. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v56a_davidian_three_groups.json +0 -0
  264. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v56b_mixture_two_groups.json +0 -0
  265. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v56c_fipc_davidian.json +0 -0
  266. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v57_school_2pl.json +0 -0
  267. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v57_twogroup.json +0 -0
  268. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v5_fipc_2pl.json +0 -0
  269. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v6_fipc_eh.json +0 -0
  270. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v6_twogroup_fipc_eh.json +0 -0
  271. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v7_2pl_lnorm_map.json +0 -0
  272. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v7_2pl_map.json +0 -0
  273. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v7_3pl_map.json +0 -0
  274. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v8_science_gpcm.json +0 -0
  275. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v8_sim_gpcm.json +0 -0
  276. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v8_sim_pcm.json +0 -0
  277. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/reference/v9_missing_2pl.json +0 -0
  278. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_benchmarks.py +0 -0
  279. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_classification.py +0 -0
  280. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_core.py +0 -0
  281. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_custom_items.py +0 -0
  282. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_docs.py +0 -0
  283. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_equating.py +0 -0
  284. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_logitnormal_prior.py +0 -0
  285. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m2_units.py +0 -0
  286. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m3_3pl_4pl.py +0 -0
  287. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m3_eh.py +0 -0
  288. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m3_gpcm.py +0 -0
  289. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m3_priors.py +0 -0
  290. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m3_squarem.py +0 -0
  291. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m4_result.py +0 -0
  292. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m4_scoring.py +0 -0
  293. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m5_davidian.py +0 -0
  294. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m5_dif.py +0 -0
  295. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m5_dif_screen.py +0 -0
  296. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m5_ensemble.py +0 -0
  297. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m5_equal_items.py +0 -0
  298. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m5_jsi.py +0 -0
  299. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m5_linking.py +0 -0
  300. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m5_m2.py +0 -0
  301. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m5_mixture.py +0 -0
  302. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m5_nominal.py +0 -0
  303. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m5_polychoric.py +0 -0
  304. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m6_fit_multidim.py +0 -0
  305. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m6_linking_multidim.py +0 -0
  306. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m7_bifactor.py +0 -0
  307. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m7_information.py +0 -0
  308. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m7_information_multidim.py +0 -0
  309. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m7_local_dependence_reduced.py +0 -0
  310. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m7_sumscore.py +0 -0
  311. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_m7_two_tier.py +0 -0
  312. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m1.py +0 -0
  313. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m2.py +0 -0
  314. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m3_gpcm.py +0 -0
  315. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m3_priors.py +0 -0
  316. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m4_irtpars.py +0 -0
  317. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m4_multigroup.py +0 -0
  318. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m4_multigroup_cross.py +0 -0
  319. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m4_multigroup_hessian.py +0 -0
  320. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m4_multigroup_simple.py +0 -0
  321. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m4_multigroup_squarem.py +0 -0
  322. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m4_scoring.py +0 -0
  323. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m5_davidian.py +0 -0
  324. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m5_dif.py +0 -0
  325. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m5_dif_screen.py +0 -0
  326. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m5_equal_items.py +0 -0
  327. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m5_itemfit.py +0 -0
  328. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m5_itemfit_multigroup.py +0 -0
  329. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m5_linking.py +0 -0
  330. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m5_m2.py +0 -0
  331. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m5_mixture.py +0 -0
  332. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m5_nominal.py +0 -0
  333. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m6_fit_multidim.py +0 -0
  334. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m6_m2_groups.py +0 -0
  335. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m7_bifactor.py +0 -0
  336. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m7_information.py +0 -0
  337. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m7_information_multidim.py +0 -0
  338. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m7_local_dependence.py +0 -0
  339. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m7_local_dependence_bifactor.py +0 -0
  340. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m7_robust_se.py +0 -0
  341. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m7_two_tier.py +0 -0
  342. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_m7_weights.py +0 -0
  343. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_v40_linking.py +0 -0
  344. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_v40_linking_multidim.py +0 -0
  345. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_v48_plots.py +0 -0
  346. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_v53_person_fit.py +0 -0
  347. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_v54_compare_fits.py +0 -0
  348. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_v55_many_groups.py +0 -0
  349. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_v56_multigroup_shapes.py +0 -0
  350. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_v57_weighted_cluster_se.py +0 -0
  351. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_mirt_v6_eh.py +0 -0
  352. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_multigroup_latent_shapes.py +0 -0
  353. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_packaging.py +0 -0
  354. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_person_fit.py +0 -0
  355. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_plotting.py +0 -0
  356. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_quadrature_gh.py +0 -0
  357. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_r_classification.py +0 -0
  358. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_r_equating.py +0 -0
  359. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_r_m7_sumscore.py +0 -0
  360. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_r_v50_screening.py +0 -0
  361. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_reference_meta.py +0 -0
  362. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_reference_provenance.py +0 -0
  363. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_release_version.py +0 -0
  364. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_scaffold.py +0 -0
  365. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_screening.py +0 -0
  366. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_shards.py +0 -0
  367. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_v54_simulate.py +0 -0
  368. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/tests/test_weighted_cluster_se.py +0 -0
  369. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/classification_reference.R +0 -0
  370. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/install_mirt.R +0 -0
  371. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m1_reference.R +0 -0
  372. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m2_reference.R +0 -0
  373. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m3_eh_reference.R +0 -0
  374. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m3_gpcm_reference.R +0 -0
  375. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m3_priors_reference.R +0 -0
  376. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m3_reference.R +0 -0
  377. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m4_irtpars_reference.R +0 -0
  378. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m4_mirt_map_reference.R +0 -0
  379. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m4_mirt_mlwle_reference.R +0 -0
  380. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m4_mirt_multigroup_reference.R +0 -0
  381. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m4_mirt_reference.R +0 -0
  382. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m4_scoring_reference.R +0 -0
  383. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m5_davidian_reference.R +0 -0
  384. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m5_dif_reference.R +0 -0
  385. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m5_dif_screen_reference.R +0 -0
  386. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m5_equal_items_reference.R +0 -0
  387. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m5_itemfit_multigroup_reference.R +0 -0
  388. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m5_itemfit_reference.R +0 -0
  389. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m5_jsi_reference.R +0 -0
  390. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m5_linking_extensions_reference.R +0 -0
  391. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m5_linking_reference.R +0 -0
  392. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m5_local_dependence_reference.R +0 -0
  393. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m5_m2_reference.R +0 -0
  394. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m5_mixture_reference.R +0 -0
  395. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m5_nominal_reference.R +0 -0
  396. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m6_fit_multidim_reference.R +0 -0
  397. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m6_m2_groups_missing_map_reference.R +0 -0
  398. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m7_bifactor_reference.R +0 -0
  399. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m7_information_multidim_reference.R +0 -0
  400. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m7_information_reference.R +0 -0
  401. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m7_local_dependence_bifactor_reference.R +0 -0
  402. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m7_local_dependence_reference.R +0 -0
  403. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m7_logit_norm_prior_reference.R +0 -0
  404. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m7_robust_se_reference.R +0 -0
  405. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m7_sumscore_reference.R +0 -0
  406. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m7_two_tier_reference.R +0 -0
  407. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/m7_weights_reference.R +0 -0
  408. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/person_fit_reference.R +0 -0
  409. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/setup.R +0 -0
  410. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/v48_plots_reference.R +0 -0
  411. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/v50_screening_reference.R +0 -0
  412. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/v51_irt_equating_reference.R +0 -0
  413. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/v54_compare_simulate_reference.R +0 -0
  414. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/v55_many_groups_reference.R +0 -0
  415. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/v56_multigroup_shapes_reference.R +0 -0
  416. {flexpyirt-0.1.0 → flexpyirt-0.2.0}/validation/r/v57_weighted_cluster_se_reference.R +0 -0
@@ -9,6 +9,8 @@ build/
9
9
  .ipynb_checkpoints/
10
10
  validation/r/.Rhistory
11
11
  validation/r/logs/
12
+ # Local R library for the GitHub mirt (FLEXPYIRT_R_LIB=validation/r/lib); never committed
13
+ validation/r/lib/
12
14
  .hypothesis/
13
15
  benchmarks/data/
14
16
  site/
@@ -0,0 +1,29 @@
1
+ # How to cite flexpyirt. GitHub shows this as "Cite this repository", and Zenodo reads it when it
2
+ # archives a release. The version is not written here: it comes from the git tag (hatch-vcs), and
3
+ # Zenodo records it with each release's DOI.
4
+ cff-version: 1.2.0
5
+ message: >-
6
+ If you use flexpyirt in your research, please cite it as below, together with the version you
7
+ used (flexpyirt.__version__).
8
+ type: software
9
+ title: "flexpyirt: Item response theory estimation in Python, built on JAX"
10
+ abstract: >-
11
+ flexpyirt estimates item response theory (IRT) models by marginal maximum likelihood with the
12
+ Bock–Aitkin EM algorithm, built on JAX. It supports dichotomous and polytomous item models,
13
+ multiple-group calibration, fixed item parameter calibration, multidimensional models, flexible
14
+ latent densities, item and model fit, DIF, scale linking and IRT equating. Every supported
15
+ feature is checked numerically against the R package mirt.
16
+ authors:
17
+ - given-names: Takumi
18
+ family-names: Itamiya
19
+ alias: takuizum
20
+ repository-code: "https://github.com/takuizum/flexpyirt"
21
+ url: "https://takuizum.github.io/flexpyirt/"
22
+ license: MIT
23
+ keywords:
24
+ - item response theory
25
+ - IRT
26
+ - psychometrics
27
+ - EM algorithm
28
+ - marginal maximum likelihood
29
+ - JAX
@@ -57,11 +57,11 @@
57
57
  - PR は**マージコミット**でマージする(`main` のルールセットはマージコミットだけを許可)。
58
58
  2. マージされると `.github/workflows/release.yml` が動く:
59
59
  1. `plan` ジョブ: PR タイトルと最新の `vX.Y.Z` タグから次のバージョンを決める。
60
- 2. `publish` ジョブ: **`release` 環境の承認待ちになる**。オーナーが Actions 画面で承認すると、
61
- `main` にタグ `vX.Y.Z` を打ってビルドし(`uv build`)、GitHub Release を作成する(wheel / sdist 添付、
60
+ 2. `publish` ジョブ: **承認を待たずに動く**(`release` 環境。`main` からしかデプロイしない)。`main` に
61
+ タグ `vX.Y.Z` を打ってビルドし(`uv build`)、GitHub Release を作成する(wheel / sdist 添付、
62
62
  リリースノート自動生成)。このリリースに含まれる fix PR が `Closes` していた issue を閉じる。
63
- 3. `pypi` ジョブ: 同じ wheel / sdist を **PyPI に公開する**(`pypi` 環境、Trusted Publishing。API トークンは
64
- 使わない)。
63
+ 3. `pypi` ジョブ: **`pypi` 環境の承認待ちになる**。オーナーが Actions 画面で承認すると、同じ wheel / sdist を
64
+ PyPI に公開する(Trusted Publishing。API トークンは使わない)。
65
65
  4. 同じ `main` への push で `.github/workflows/docs.yml` がドキュメントサイトを GitHub Pages に公開する。
66
66
  3. **最初のリリース**(`v*` タグがまだない)は、タイトルの上げ方に関係なく **v0.0.1**。
67
67
  4. 手動実行(`workflow_dispatch`)は dry run 専用で、次のバージョンの計算とビルドだけを行う。
@@ -78,8 +78,11 @@
78
78
  - **`main` を更新できるのはリポジトリ管理者だけ**(ルールセット `main-release-gate`)。PR と CI の要件
79
79
  (ルールセット `main`)は管理者にも適用される。リリースを起こせるのは develop → main を
80
80
  マージできる管理者だけ。
81
- - **`publish` ジョブは `release` 環境で動き、指定レビュアー(オーナー)の承認が必要**。環境は `main` からしか
82
- デプロイできないので、他のブランチやフォークからはタグも Release も作れない。
81
+ - **`publish` ジョブは `release` 環境で動く**。環境は `main` からしかデプロイできないので、他のブランチや
82
+ フォークからはタグも Release も作れない。必須レビュアーは付けていない。リリース PR のマージが、タグを打つ
83
+ 判断である。
84
+ - **`pypi` ジョブは `pypi` 環境で動き、指定レビュアー(オーナー)の承認が必要**。承認なしに PyPI に出る
85
+ ことはない。
83
86
  - **PyPI への公開は Trusted Publishing**(OIDC)。PyPI のプロジェクト `flexpyirt` は
84
87
  「リポジトリ `takuizum/flexpyirt`、ワークフロー `release.yml`、環境 `pypi`」という publisher だけを信頼するので、
85
88
  API トークンはリポジトリに置かない。`pypi` 環境もデプロイ元を `main` に限定しておく。PyPI に一度上げた番号は
@@ -192,3 +195,13 @@ uv run --group docs mkdocs build --strict # CI と同じ検査(リンク切
192
195
  [API スケッチ](docs/dev/API.ja.md)、[検証計画](docs/dev/VALIDATION.ja.md)、
193
196
  [ロードマップ](docs/dev/ROADMAP.ja.md))。これらはサイトから除外されるので、サイトのページから相対リンクで
194
197
  指さない(必要なら GitHub の URL)。マイルストーン、設計書の節番号、照合ケース ID は利用者向けページに書かない。
198
+ - `examples/` のケーススタディのノートブック(`docs/case-studies.ja.md` からリンク)は `X.ipynb` と `X.ja.ipynb` の
199
+ 組で、コードは同じ。最初のセルは `main` の Colab を指し、インストールのセルは PyPI から flexpyirt を入れるので、
200
+ リリース済みの機能だけを使う。出力ごとコミットするので、変えたら両言語とも実行し直す:
201
+
202
+ ```bash
203
+ uv run --with nbconvert --with ipykernel jupyter nbconvert --to notebook --execute --inplace examples/*.ipynb
204
+ ```
205
+
206
+ `tests/test_examples.py` が組と保存された出力を確かめ(fast)、コードを実行する(slow。`bfi` はデータを
207
+ ダウンロードする)。
@@ -65,12 +65,13 @@ releasing means tagging. Untagged development commits get versions like `0.0.2.d
65
65
  - Merge it with a **merge commit** (the `main` ruleset allows merge commits only).
66
66
  2. The merge runs `.github/workflows/release.yml`:
67
67
  1. `plan` job: computes the next version from the PR title and the latest `vX.Y.Z` tag.
68
- 2. `publish` job: **waits for approval in the `release` environment**. Once the owner approves
69
- it on the Actions page, it tags `main` with `vX.Y.Z`, builds (`uv build`) and creates a
70
- GitHub Release (wheel and sdist attached, release notes generated). It then closes the
71
- issues that fix PRs in this release `Closes`d.
72
- 3. `pypi` job: **publishes the same wheel and sdist to PyPI** (`pypi` environment, Trusted
73
- Publishing; no API token).
68
+ 2. `publish` job: runs **without waiting for approval** (`release` environment, which deploys
69
+ from `main` only). It tags `main` with `vX.Y.Z`, builds (`uv build`) and creates a GitHub
70
+ Release (wheel and sdist attached, release notes generated). It then closes the issues
71
+ that fix PRs in this release `Closes`d.
72
+ 3. `pypi` job: **waits for approval in the `pypi` environment**. Once the owner approves it on
73
+ the Actions page, it publishes the same wheel and sdist to PyPI (Trusted Publishing; no
74
+ API token).
74
75
  4. The same push to `main` runs `.github/workflows/docs.yml`, which deploys the documentation
75
76
  site to GitHub Pages.
76
77
  3. **The first release** (no `v*` tag yet) is **v0.0.1**, whatever bump the title asks for.
@@ -89,9 +90,11 @@ Versions follow [Semantic Versioning](https://semver.org/). The public API may c
89
90
  - **Only repository admins can update `main`** (ruleset `main-release-gate`). The PR and CI
90
91
  requirements (ruleset `main`) apply to admins too. Only an admin who can merge develop into main
91
92
  can start a release.
92
- - **The `publish` job runs in the `release` environment and needs the designated reviewer's (the
93
- owner's) approval.** The environment deploys from `main` only, so other branches and forks cannot
94
- create tags or Releases.
93
+ - **The `publish` job runs in the `release` environment**, which deploys from `main` only, so
94
+ other branches and forks cannot create tags or Releases. It has no required reviewer: merging
95
+ the release PR is the decision to tag.
96
+ - **The `pypi` job needs the designated reviewer's (the owner's) approval** in the `pypi`
97
+ environment. Nothing reaches PyPI without it.
95
98
  - **PyPI uploads use Trusted Publishing** (OIDC). The PyPI project `flexpyirt`
96
99
  trusts only the publisher "repository `takuizum/flexpyirt`, workflow `release.yml`, environment
97
100
  `pypi`", so no API token lives in the repository. Restrict the `pypi` environment to deployments from `main` as well. A version
@@ -224,3 +227,14 @@ uv run --group docs mkdocs build --strict # the CI check (fails on broken links
224
227
  [validation plan](docs/dev/VALIDATION.md), [roadmap](docs/dev/ROADMAP.md)); they are excluded from
225
228
  the site, so site pages must not link to them with relative links (use a GitHub URL if needed).
226
229
  Keep milestones, design-section numbers and validation case IDs out of user pages.
230
+ - The case-study notebooks in `examples/` (linked from `docs/case-studies.md`) come in pairs,
231
+ `X.ipynb` and `X.ja.ipynb`, with the same code. Their first cell links to Colab on `main` and the
232
+ install cell installs flexpyirt from PyPI, so they may use only released features. They are
233
+ committed with their outputs; after changing one, run both languages again:
234
+
235
+ ```bash
236
+ uv run --with nbconvert --with ipykernel jupyter nbconvert --to notebook --execute --inplace examples/*.ipynb
237
+ ```
238
+
239
+ `tests/test_examples.py` checks the pairs and the stored outputs (fast tier) and runs the code
240
+ (slow tier; the `bfi` notebook downloads its data).
@@ -0,0 +1,227 @@
1
+ Metadata-Version: 2.5
2
+ Name: flexpyirt
3
+ Version: 0.2.0
4
+ Summary: Bock–Aitkin EM estimation for item response theory models, built on JAX.
5
+ Project-URL: Homepage, https://github.com/takuizum/flexpyirt
6
+ Project-URL: Documentation, https://takuizum.github.io/flexpyirt/
7
+ Project-URL: Repository, https://github.com/takuizum/flexpyirt
8
+ Project-URL: Issues, https://github.com/takuizum/flexpyirt/issues
9
+ Project-URL: Releases, https://github.com/takuizum/flexpyirt/releases
10
+ Author: takuizum
11
+ License-Expression: MIT
12
+ License-File: LICENSE
13
+ Keywords: EM algorithm,IRT,JAX,item response theory,marginal maximum likelihood,psychometrics
14
+ Classifier: Development Status :: 3 - Alpha
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3 :: Only
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
22
+ Classifier: Typing :: Typed
23
+ Requires-Python: >=3.12
24
+ Requires-Dist: flexpyctt<0.2,>=0.1
25
+ Requires-Dist: jax>=0.4.30
26
+ Requires-Dist: numpy>=1.26
27
+ Requires-Dist: pandas>=2.1
28
+ Requires-Dist: scipy>=1.11
29
+ Provides-Extra: plot
30
+ Requires-Dist: matplotlib>=3.8; extra == 'plot'
31
+ Provides-Extra: polars
32
+ Requires-Dist: polars>=1.0; extra == 'polars'
33
+ Description-Content-Type: text/markdown
34
+
35
+ # flexpyirt
36
+
37
+ [![PyPI](https://img.shields.io/pypi/v/flexpyirt)](https://pypi.org/project/flexpyirt/)
38
+ [![Python](https://img.shields.io/pypi/pyversions/flexpyirt)](https://pypi.org/project/flexpyirt/)
39
+ [![CI](https://github.com/takuizum/flexpyirt/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/takuizum/flexpyirt/actions/workflows/ci.yml)
40
+ [![Docs](https://github.com/takuizum/flexpyirt/actions/workflows/docs.yml/badge.svg?branch=main)](https://takuizum.github.io/flexpyirt/)
41
+ [![License](https://img.shields.io/pypi/l/flexpyirt)](https://github.com/takuizum/flexpyirt/blob/main/LICENSE)
42
+
43
+ English | [日本語](https://github.com/takuizum/flexpyirt/blob/main/README.ja.md)
44
+
45
+ flexpyirt estimates item response theory (IRT) models in Python. It fits unidimensional and
46
+ multidimensional models by marginal maximum likelihood (the Bock–Aitkin EM algorithm) on JAX, and
47
+ covers the steps that follow a fit: scoring, fit statistics, DIF, linking and equating, and plots.
48
+
49
+ - **Checked against R `mirt`**: every supported feature is compared numerically with mirt or
50
+ another independent R implementation (parameters, log-likelihood and standard errors agree to
51
+ about 1e-8; see [accuracy and validation](https://takuizum.github.io/flexpyirt/accuracy/)).
52
+ - **Exact derivatives**: gradients, Hessians and standard errors come from JAX automatic
53
+ differentiation rather than numerical approximation. Estimation is compiled with JAX and also
54
+ runs on GPUs.
55
+ - **Works with DataFrames**: responses go in as a pandas (or polars) DataFrame, and item
56
+ parameters and scores come back as DataFrames.
57
+
58
+ > Under development (0.x). The public API may change before 1.0.0.
59
+
60
+ **Documentation: <https://takuizum.github.io/flexpyirt/>**
61
+
62
+ ## Installation
63
+
64
+ Python 3.12 or later.
65
+
66
+ ```bash
67
+ pip install "flexpyirt[plot]" # or: uv add "flexpyirt[plot]"
68
+ ```
69
+
70
+ The `plot` extra adds matplotlib for the plots below; `pip install flexpyirt` installs the library
71
+ without it. For polars input, install `flexpyirt[polars]`. For GPUs, install a CUDA build of `jax`
72
+ first (see the [JAX installation guide](https://docs.jax.dev/en/latest/installation.html)).
73
+
74
+ ## Basic usage
75
+
76
+ The data is a DataFrame with one row per respondent and one column per item (values 0/1 for
77
+ dichotomous items, `0..K-1` for polytomous items, missing responses as NaN). The example simulates
78
+ such data, so it runs as it is; with your own data, start from `spec = ...`.
79
+
80
+ ```python
81
+ import jax
82
+ import numpy as np
83
+ import pandas as pd
84
+
85
+ from flexpyirt import Model, TwoPL, fit
86
+
87
+ jax.config.update("jax_enable_x64", True) # flexpyirt computes in 64-bit floating point
88
+
89
+ # Simulated 2PL responses: 1000 respondents, 10 items
90
+ rng = np.random.default_rng(1)
91
+ n_persons, n_items = 1000, 10
92
+ a = rng.lognormal(0.0, 0.3, n_items) # slopes
93
+ d = rng.normal(0.0, 1.0, n_items) # intercepts
94
+ theta = rng.normal(0.0, 1.0, n_persons)
95
+ p = 1.0 / (1.0 + np.exp(-(np.outer(theta, a) + d)))
96
+ df = pd.DataFrame(
97
+ (rng.random(p.shape) < p).astype(int),
98
+ columns=[f"q{j:02d}" for j in range(1, n_items + 1)],
99
+ )
100
+
101
+ spec = Model.uniform(TwoPL(), items=df.columns) # the same item model for every item
102
+ res = fit(spec, df)
103
+ print(res)
104
+ ```
105
+
106
+ ```text
107
+ FitResult(loglik=-6268.2427, n_params=20, n_obs=1000, converged in 16 iterations, se=oakes)
108
+ ```
109
+
110
+ flexpyirt computes in 64-bit floating point. The JAX setting belongs to you, so the library does not
111
+ change it: enable it once before fitting, as in the first lines above (otherwise `fit()` raises
112
+ `PrecisionError`).
113
+
114
+ **Item parameters** are in `res.items`, with standard errors:
115
+
116
+ ```python
117
+ print(res.items.head().round(3)) # one row per item
118
+ ```
119
+
120
+ ```text
121
+ item model a d a_se d_se b b_se
122
+ 0 q01 2PL 1.035 0.016 0.112 0.077 -0.016 0.075
123
+ 1 q02 2PL 1.527 0.441 0.153 0.093 -0.289 0.061
124
+ 2 q03 2PL 1.179 -0.905 0.125 0.091 0.767 0.089
125
+ 3 q04 2PL 0.695 -0.276 0.093 0.071 0.397 0.111
126
+ 4 q05 2PL 1.518 -0.560 0.151 0.094 0.369 0.063
127
+ ```
128
+
129
+ Parameters use the slope–intercept form $P(y=1\mid\theta)=\sigma(a\theta+d)$; the table also
130
+ shows the difficulty $b=-d/a$. `res.loglik`, `res.aic` and `res.bic` hold the fit of the model, and
131
+ `print(res.summary())` shows the whole report.
132
+
133
+ **Ability estimates** come from `res.score()`:
134
+
135
+ ```python
136
+ scores = res.score(df) # EAP estimate and its standard error per respondent
137
+ print(scores.head().round(3))
138
+ ```
139
+
140
+ ```text
141
+ theta se
142
+ 0 -0.128 0.508
143
+ 1 -0.076 0.506
144
+ 2 1.825 0.634
145
+ 3 0.838 0.527
146
+ 4 -1.597 0.655
147
+ ```
148
+
149
+ Other item models are used the same way: replace `TwoPL()` by `Rasch()`, `ThreePL()`, `GRM(n_categories)`
150
+ and so on. The [user guide](https://takuizum.github.io/flexpyirt/guide/) continues from here with mixed item formats,
151
+ multiple groups, fixed item parameter calibration and multidimensional models.
152
+
153
+ ## Visualizing the results
154
+
155
+ `flexpyirt.plotting` draws the usual figures from a fit. The functions return matplotlib objects; save one
156
+ with `fig_curves.savefig("item_curves.png")`, or show it in a notebook.
157
+
158
+ ```python
159
+ from flexpyirt.plotting import plot_information, plot_item_curves
160
+
161
+ # Item characteristic curves with the observed proportions
162
+ fig_curves = plot_item_curves(res, ["q01", "q02", "q03"], data=df)
163
+
164
+ # Test information and the standard error of theta
165
+ ax_information = plot_information(res, standard_error=True)
166
+ ```
167
+
168
+ ![Item characteristic curves of three items with observed proportions](https://raw.githubusercontent.com/takuizum/flexpyirt/main/docs/images/readme/item_curves.png)
169
+
170
+ ![Test information and standard error](https://raw.githubusercontent.com/takuizum/flexpyirt/main/docs/images/readme/information.png)
171
+
172
+ The points are the observed proportions of correct responses in ten groups of respondents sorted by
173
+ their ability estimate. Test characteristic curves, Wright maps and per-group curves for DIF are
174
+ drawn in the same way (see [plots](https://takuizum.github.io/flexpyirt/guide/#plots) in the user guide).
175
+
176
+ ## Features
177
+
178
+ | Area | What is available |
179
+ |---|---|
180
+ | Item models | Rasch, 2PL, 3PL, 4PL, graded response, (generalized) partial credit, nominal; user-defined models |
181
+ | Model structure | multiple groups with anchor items, fixed item parameter calibration (FIPC), equality constraints, confirmatory 2–3 factor, bifactor and two-tier models |
182
+ | Estimation | marginal maximum likelihood by Bock–Aitkin EM (optionally accelerated), priors (MAP), missing responses, sampling weights; standard errors by Oakes' identity, the Hessian or the sandwich estimator |
183
+ | Latent distributions | normal, empirical histogram, Davidian curves, normal mixtures |
184
+ | Scoring | EAP, MAP, ML, WLE, plausible values, summed-score EAP |
185
+ | Fit | S-X2, infit / outfit, person fit, $M_2$, local dependence |
186
+ | DIF | likelihood-ratio and Wald tests with anchor purification and effect sizes; Mantel–Haenszel and logistic regression |
187
+ | Linking and equating | Haebara and Stocking–Lord linking with standard errors, common-item screening, IRT true-score and observed-score equating, raw-to-scale tables |
188
+ | Information and plots | item and test information, reliability, classification accuracy; item curves, information curves, Wright maps |
189
+ | Without a fitted model | polychoric correlations, number of dimensions, DETECT, DIMTEST, classical item analysis (from the companion package [flexpyctt](https://pypi.org/project/flexpyctt/), installed with flexpyirt) |
190
+
191
+ Details, limits and what is not supported yet: **[features](https://takuizum.github.io/flexpyirt/features/)**.
192
+ A feature table against R mirt and other Python libraries, and timings against mirt:
193
+ **[comparison with other libraries](https://takuizum.github.io/flexpyirt/comparison/)**.
194
+
195
+ [flexpyequate](https://pypi.org/project/flexpyequate/) is a separate package for equating score
196
+ distributions (linear, equipercentile and kernel equating); it is not installed with flexpyirt.
197
+
198
+ ## Documentation
199
+
200
+ - [User guide](https://takuizum.github.io/flexpyirt/guide/) — specifying models, multiple groups, FIPC, scoring, fit, DIF,
201
+ linking and estimation options
202
+ - [Case studies](https://takuizum.github.io/flexpyirt/case-studies/) — notebooks that analyse public
203
+ data sets from start to finish, ready to run on Google Colab
204
+ - [Features](https://takuizum.github.io/flexpyirt/features/) — everything flexpyirt can do, by topic
205
+ - [Comparison with other libraries](https://takuizum.github.io/flexpyirt/comparison/) — features and speed
206
+ - [Theory](https://takuizum.github.io/flexpyirt/theory/) — the models, the estimation algorithm, standard errors, scoring, fit
207
+ statistics and linking, in brief
208
+ - [API reference](https://takuizum.github.io/flexpyirt/reference/) — public classes and functions and their arguments
209
+ - [Accuracy and validation](https://takuizum.github.io/flexpyirt/accuracy/) — how results are checked against R mirt, tolerances,
210
+ known differences from mirt
211
+ - [For mirt users](https://takuizum.github.io/flexpyirt/mirt-users/) — mirt functions and arguments
212
+ and their flexpyirt counterparts
213
+
214
+ Every document is also available in Japanese ([日本語サイト](https://takuizum.github.io/flexpyirt/ja/)).
215
+
216
+ ## Citation
217
+
218
+ If you use flexpyirt in research, please cite it with the version you used; see
219
+ [citing flexpyirt](https://takuizum.github.io/flexpyirt/citation/) for APA and BibTeX entries.
220
+
221
+ ## Feedback
222
+
223
+ Bug reports and questions are welcome on [GitHub Issues](https://github.com/takuizum/flexpyirt/issues).
224
+
225
+ ## License
226
+
227
+ MIT
@@ -0,0 +1,185 @@
1
+ # flexpyirt
2
+
3
+ [![PyPI](https://img.shields.io/pypi/v/flexpyirt)](https://pypi.org/project/flexpyirt/)
4
+ [![Python](https://img.shields.io/pypi/pyversions/flexpyirt)](https://pypi.org/project/flexpyirt/)
5
+ [![CI](https://github.com/takuizum/flexpyirt/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/takuizum/flexpyirt/actions/workflows/ci.yml)
6
+ [![Docs](https://github.com/takuizum/flexpyirt/actions/workflows/docs.yml/badge.svg?branch=main)](https://takuizum.github.io/flexpyirt/ja/)
7
+ [![License](https://img.shields.io/pypi/l/flexpyirt)](https://github.com/takuizum/flexpyirt/blob/main/LICENSE)
8
+
9
+ [English](https://github.com/takuizum/flexpyirt/blob/main/README.md) | 日本語
10
+
11
+ flexpyirt は、項目反応理論(IRT)のモデルを Python で推定するライブラリである。JAX 上の周辺最尤推定
12
+ (Bock–Aitkin EM アルゴリズム)で 1 次元・多次元のモデルを推定し、推定のあとに続く作業(スコアリング、
13
+ 適合度、DIF、リンキングと等化、図)までを扱う。
14
+
15
+ - **R `mirt` と照合済み**: 対応済みの機能はすべて、mirt またはほかの独立な R の実装と数値照合している
16
+ (パラメタ・対数尤度・標準誤差がおおむね 1e-8 で一致。[精度と検証](https://takuizum.github.io/flexpyirt/ja/accuracy/))。
17
+ - **厳密な微分**: 勾配・Hessian・標準誤差は数値近似ではなく JAX の自動微分で計算する。推定は JAX で
18
+ コンパイルされ、GPU でも動く。
19
+ - **DataFrame で使える**: 反応データは pandas(または polars)の DataFrame で渡し、項目パラメタと
20
+ スコアも DataFrame で返る。
21
+
22
+ > 開発中(0.x)。公開 API は 1.0.0 まで変わることがある。
23
+
24
+ **ドキュメント: <https://takuizum.github.io/flexpyirt/ja/>**
25
+
26
+ ## インストール
27
+
28
+ Python 3.12 以上。
29
+
30
+ ```bash
31
+ pip install "flexpyirt[plot]" # または uv add "flexpyirt[plot]"
32
+ ```
33
+
34
+ `plot` をつけると、下の図を描くための matplotlib も入る。`pip install flexpyirt` なら matplotlib なしで
35
+ 入る。polars の DataFrame を使う場合は `flexpyirt[polars]`。GPU を使う場合は、先に CUDA 版の `jax` を入れる
36
+ ([JAX のインストール手順](https://docs.jax.dev/en/latest/installation.html))。
37
+
38
+ ## 基本的な使い方
39
+
40
+ データは、1 行が回答者、1 列が項目の DataFrame である(2 値項目は 0/1、多値項目は `0..K-1`、欠測は NaN)。
41
+ 下の例はそのようなデータをシミュレーションで作るので、そのまま動く。自分のデータを使うときは
42
+ `spec = ...` の行から始めればよい。
43
+
44
+ ```python
45
+ import jax
46
+ import numpy as np
47
+ import pandas as pd
48
+
49
+ from flexpyirt import Model, TwoPL, fit
50
+
51
+ jax.config.update("jax_enable_x64", True) # flexpyirt は 64 ビット浮動小数点で計算する
52
+
53
+ # 2PL の反応データをシミュレーションする(回答者 1000 人、10 項目)
54
+ rng = np.random.default_rng(1)
55
+ n_persons, n_items = 1000, 10
56
+ a = rng.lognormal(0.0, 0.3, n_items) # 識別力
57
+ d = rng.normal(0.0, 1.0, n_items) # 切片
58
+ theta = rng.normal(0.0, 1.0, n_persons)
59
+ p = 1.0 / (1.0 + np.exp(-(np.outer(theta, a) + d)))
60
+ df = pd.DataFrame(
61
+ (rng.random(p.shape) < p).astype(int),
62
+ columns=[f"q{j:02d}" for j in range(1, n_items + 1)],
63
+ )
64
+
65
+ spec = Model.uniform(TwoPL(), items=df.columns) # 全項目に同じ項目モデル
66
+ res = fit(spec, df)
67
+ print(res)
68
+ ```
69
+
70
+ ```text
71
+ FitResult(loglik=-6268.2427, n_params=20, n_obs=1000, converged in 16 iterations, se=oakes)
72
+ ```
73
+
74
+ flexpyirt は 64 ビット浮動小数点で計算する。JAX の設定はユーザーのものなので、ライブラリからは変えない。
75
+ 上の例のはじめのように、推定の前に一度有効にしておく(無効なら `fit()` が `PrecisionError` を出す)。
76
+
77
+ **項目パラメタ**は `res.items` に標準誤差つきで入っている。
78
+
79
+ ```python
80
+ print(res.items.head().round(3)) # 1 行が 1 項目
81
+ ```
82
+
83
+ ```text
84
+ item model a d a_se d_se b b_se
85
+ 0 q01 2PL 1.035 0.016 0.112 0.077 -0.016 0.075
86
+ 1 q02 2PL 1.527 0.441 0.153 0.093 -0.289 0.061
87
+ 2 q03 2PL 1.179 -0.905 0.125 0.091 0.767 0.089
88
+ 3 q04 2PL 0.695 -0.276 0.093 0.071 0.397 0.111
89
+ 4 q05 2PL 1.518 -0.560 0.151 0.094 0.369 0.063
90
+ ```
91
+
92
+ パラメタは傾き・切片形式 $P(y=1\mid\theta)=\sigma(a\theta+d)$ で、表には困難度 $b=-d/a$ も載る。
93
+ モデルの当てはまりは `res.loglik`、`res.aic`、`res.bic` にあり、`print(res.summary())` で全体を表示できる。
94
+
95
+ **能力値**は `res.score()` で推定する。
96
+
97
+ ```python
98
+ scores = res.score(df) # 回答者ごとの EAP 推定値と標準誤差
99
+ print(scores.head().round(3))
100
+ ```
101
+
102
+ ```text
103
+ theta se
104
+ 0 -0.128 0.508
105
+ 1 -0.076 0.506
106
+ 2 1.825 0.634
107
+ 3 0.838 0.527
108
+ 4 -1.597 0.655
109
+ ```
110
+
111
+ ほかの項目モデルも同じように使える。`TwoPL()` を `Rasch()`、`ThreePL()`、`GRM(n_categories)` などに
112
+ 置き換えればよい。項目形式の混在、多母集団、固定項目パラメタ推定、多次元モデルなどは
113
+ [ユーザーガイド](https://takuizum.github.io/flexpyirt/ja/guide/)で続きを説明している。
114
+
115
+ ## 推定結果の可視化
116
+
117
+ `flexpyirt.plotting` は、推定結果からよく使う図を描く。関数は matplotlib のオブジェクトを返すので、
118
+ `fig_curves.savefig("item_curves.png")` で保存するか、ノートブックで表示する。
119
+
120
+ ```python
121
+ from flexpyirt.plotting import plot_information, plot_item_curves
122
+
123
+ # 観測比率つきの項目特性曲線
124
+ fig_curves = plot_item_curves(res, ["q01", "q02", "q03"], data=df)
125
+
126
+ # テスト情報量と theta の標準誤差
127
+ ax_information = plot_information(res, standard_error=True)
128
+ ```
129
+
130
+ ![3 項目の項目特性曲線と観測比率](https://raw.githubusercontent.com/takuizum/flexpyirt/main/docs/images/readme/item_curves.png)
131
+
132
+ ![テスト情報量と標準誤差](https://raw.githubusercontent.com/takuizum/flexpyirt/main/docs/images/readme/information.png)
133
+
134
+ 点は、能力値の推定値の順に回答者を 10 グループに分けたときの、各グループの正答率である。テスト特性曲線、
135
+ Wright マップ、DIF を見るための群ごとの曲線も同じように描ける(ユーザーガイドの
136
+ [図](https://takuizum.github.io/flexpyirt/ja/guide/#図))。
137
+
138
+ ## できること
139
+
140
+ | 分野 | 使えるもの |
141
+ |---|---|
142
+ | 項目モデル | Rasch、2PL、3PL、4PL、段階反応、(一般化)部分採点、名義反応。ユーザー定義のモデル |
143
+ | モデルの構造 | アンカー項目でつなぐ多母集団、固定項目パラメタ推定(FIPC)、等値制約、確認的 2〜3 因子・双因子・two-tier モデル |
144
+ | 推定 | Bock–Aitkin EM による周辺最尤推定(加速も可)、事前分布(MAP)、欠測、標本ウェイト。標準誤差は Oakes の恒等式・Hessian・サンドイッチ推定量 |
145
+ | 潜在分布 | 正規、経験ヒストグラム、Davidian 曲線、混合正規 |
146
+ | スコアリング | EAP、MAP、ML、WLE、plausible values、合計得点 EAP |
147
+ | 適合度 | S-X2、infit / outfit、受検者適合度、$M_2$、局所依存 |
148
+ | DIF | 尤度比検定・Wald 検定(アンカーの純化、効果量つき)。Mantel–Haenszel 法、ロジスティック回帰 |
149
+ | リンキングと等化 | 標準誤差つきの Haebara・Stocking–Lord リンキング、共通項目のスクリーニング、IRT 真値等化・観測得点等化、素点-尺度得点変換表 |
150
+ | 情報量と図 | 項目・テスト情報量、信頼性、分類の正確さ。項目特性曲線、情報量の曲線、Wright マップ |
151
+ | モデルを使わない分析 | ポリコリック相関、次元数、DETECT、DIMTEST、古典的項目分析(対になるパッケージ [flexpyctt](https://pypi.org/project/flexpyctt/) が提供する。flexpyirt と一緒に入る) |
152
+
153
+ 詳しい内容、制限、まだ対応していないものは **[機能一覧](https://takuizum.github.io/flexpyirt/ja/features/)** にある。
154
+ R mirt やほかの Python ライブラリとの機能の比較表と、mirt との実行時間の比較は
155
+ **[ほかのライブラリとの比較](https://takuizum.github.io/flexpyirt/ja/comparison/)** にある。
156
+
157
+ [flexpyequate](https://pypi.org/project/flexpyequate/) は、得点分布の等化(線形等化、等パーセンタイル等化、
158
+ カーネル等化)を行う別のパッケージで、flexpyirt をインストールしても入らない。
159
+
160
+ ## ドキュメント
161
+
162
+ - [ユーザーガイド](https://takuizum.github.io/flexpyirt/ja/guide/) — モデルの指定、多母集団、FIPC、スコアリング、適合度、DIF、リンキング、
163
+ 推定オプション
164
+ - [ケーススタディ](https://takuizum.github.io/flexpyirt/ja/case-studies/) — 公開データを最初から最後まで分析したノートブック。Google Colab ですぐに動かせる
165
+ - [機能一覧](https://takuizum.github.io/flexpyirt/ja/features/) — flexpyirt でできることを分野ごとに
166
+ - [ほかのライブラリとの比較](https://takuizum.github.io/flexpyirt/ja/comparison/) — 機能と速度
167
+ - [理論](https://takuizum.github.io/flexpyirt/ja/theory/) — モデル、推定アルゴリズム、標準誤差、スコアリング、適合度、リンキングの要点
168
+ - [API リファレンス](https://takuizum.github.io/flexpyirt/ja/reference/) — 公開クラス・関数の一覧と引数
169
+ - [精度と検証](https://takuizum.github.io/flexpyirt/ja/accuracy/) — R mirt との照合方法、許容誤差、mirt との既知の違い
170
+ - [mirt ユーザーのために](https://takuizum.github.io/flexpyirt/ja/mirt-users/) — mirt の関数・引数と、flexpyirt で対応するもの
171
+
172
+ すべての文書に英語版がある(サイトの言語切り替えから開ける)。
173
+
174
+ ## 引用
175
+
176
+ 研究で flexpyirt を使ったときは、使った版とともに引用してほしい。APA 形式と BibTeX は
177
+ [flexpyirt の引用](https://takuizum.github.io/flexpyirt/ja/citation/)にある。
178
+
179
+ ## フィードバック
180
+
181
+ 不具合の報告や質問は [GitHub Issues](https://github.com/takuizum/flexpyirt/issues) へ。
182
+
183
+ ## ライセンス
184
+
185
+ MIT