Nothing
# Extracted from test-lra-ordinal.R:175
# 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 <- TesFit3[-3, 3] |> as.numeric()
actual <- result$TestFitIndices |>
unclass() |>
unlist() |>
as.numeric()
actual <- actual[-c(1, 2, 3, 5, 7)]
cols_to_test <- 1:7
expect_equal(actual[cols_to_test], expect[cols_to_test], 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.