Nothing
# Extracted from test-lra-ordinal.R:109
# 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 -------------------------------------------------------------------------
TRP_mat <- TRP_ref[, 2:4] |>
as.matrix() |>
unname()
expect1 <- TRP_mat[1, ] |> as.vector()
expect2 <- TRP_mat[2, ] |> as.vector()
actual1 <- result$TRP |> as.vector()
actual2 <- result$LRD |> as.vector()
expect_equal(actual1, expect1, tolerance = 1e-6)
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.