Nothing
# Extracted from test-lra-ordinal.R:90
# prequel ----------------------------------------------------------------------
library(exametrika)
testReport <- read.csv(
test_path("fixtures", "mathematica_reference", "12GNT_TestReport.csv"),
check.names = FALSE
)
itemReport <- read.csv(
test_path("fixtures", "mathematica_reference", "12GNT_ItemReport.csv"),
check.names = FALSE
)
catQuant <- read.csv(
test_path("fixtures", "mathematica_reference", "12GNT_CatQuantReport.csv"),
check.names = FALSE
)
cumRatio <- read.csv(
test_path("fixtures", "mathematica_reference", "12GNT_CumRatio.csv"),
check.names = FALSE
)
testRefProf <- read.csv(
test_path("fixtures", "mathematica_reference", "12GNT_TestRefProf.csv"),
check.names = FALSE
)
TRP_ref <- read.csv(
test_path("fixtures", "mathematica_reference", "12GNT_TRP.csv"),
check.names = FALSE
)
RankProf <- read.csv(
test_path("fixtures", "mathematica_reference", "12GNT_RankProf.csv"),
check.names = FALSE
)
ScoreRank <- read.csv(
test_path("fixtures", "mathematica_reference", "12GNT_ScoreRank.csv"),
check.names = FALSE
)
TesFit1 <- read.csv(
test_path("fixtures", "mathematica_reference", "12GNT_TestFit1.csv"),
check.names = FALSE
)
TesFit2 <- read.csv(
test_path("fixtures", "mathematica_reference", "12GNT_TestFit2.csv"),
check.names = FALSE
)
TesFit3 <- read.csv(
test_path("fixtures", "mathematica_reference", "12GNT_TestFit3.csv"),
check.names = FALSE
)
result <- LRA(J15S3810, mic = TRUE, nrank = 3, method = "GTM")
# test -------------------------------------------------------------------------
expect <- cumRatio[, 2:4] |> as.matrix()
actual <- result$ICBR[, 3:5] |> as.matrix()
rownames(expect) <- rownames(actual) <- NULL
colnames(expect) <- colnames(actual) <- NULL
expect_equal(actual, expect, tolerance = 1e-4)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.