From b57cca30abd1a2274d1efb41a49ccdaac60ed9e0 Mon Sep 17 00:00:00 2001 From: Philipp Gewessler Date: Mon, 30 Jan 2023 17:01:27 +0100 Subject: [PATCH] export expected_score and information (#13) --- Project.toml | 2 +- src/tests.jl | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index d184391..c653627 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "AbstractItemResponseModels" uuid = "0ab3451c-659c-47cd-a7a9-a2d579e209dd" authors = ["Philipp Gewessler", "Tobias Alfers"] -version = "0.1.0" +version = "0.1.1" [deps] StatsAPI = "82ae8749-77ed-4fe6-ae5f-f523153014b0" diff --git a/src/tests.jl b/src/tests.jl index 3215a6a..ef0543f 100644 --- a/src/tests.jl +++ b/src/tests.jl @@ -2,7 +2,7 @@ module Tests import AbstractItemResponseModels: response_type, item_dimensionality, person_dimensionality, estimation_type, fit, - irf, iif + irf, iif, expected_score, information using AbstractItemResponseModels using Test @@ -66,6 +66,7 @@ end function information(model::FakeIRM{RT,PD,ID,PointEstimate}, theta, is=nothing; scoring_function=identity) where {RT,PD,ID} return scoring_function(0.0) end + function information(model::FakeIRM{RT,PD,ID,SamplingEstimate}, theta, is=nothing; scoring_function=identity) where {RT,PD,ID} return scoring_function.(fill(0.0, 10)) end @@ -114,7 +115,7 @@ function test_traits(model) end function test_irf(model::ItemResponseModel) - @testset "irt" begin + @testset "irf" begin rt = response_type(model) pdim = person_dimensionality(model) idim = item_dimensionality(model)