exametrika 1.13.0
New features
-
Graphical Lasso (
Glasso): New function for sparse precision matrix estimation from ordinal item response data. The polychoric correlation matrix is computed internally and the optimal regularization parameter is selected by Extended Bayesian Information Criterion (EBIC; Foygel and Drton 2010). Implements block coordinate descent (Friedman, Hastie, Tibshirani 2008; Algorithm 17.2 of Hastie, Tibshirani, Friedman 2009) with cyclical coordinate descent for the inner lasso step. Warm-starting across the lambda grid accelerates the search.Internal helpers
glasso_one()(single-lambda solver) andcompute_EBIC_glasso()(EBIC computation) are available but not exported.Returns a list with
theta(selected precision matrix),lambda_opt(selected lambda),ebic_opt,n_edge, andpath(data frame of lambda, ebic, n_edge over the search grid). print.exametrikaGlasso method: Added a Glasso branch to the sharedprint.exametrika()dispatcher to summarize the estimated model (optimal lambda, EBIC value, edge count, precision matrix).Chatterjee’s xi correlation (
chatterjee_xi,xi_stable,chatterjee_matrix): New family of functions implementing Chatterjee’s (2021) rank-based correlation coefficient.chatterjee_xi()computes the single-shot value with random tie-breaking.xi_stable()averages B replications (default B = 1000) to stabilize against tie-induced variability and returns a list with the mean, standard deviation, standard error, and B.chatterjee_matrix()produces the p x p asymmetric pairwise xi matrix from ordinal data with pairwise-complete handling of missing values; the asymmetry between xi(j, k) and xi(k, j) enables direction detection in graphical-model construction.
Documentation and CRAN check cleanup
-
Roxygen Markdown bracket escapes: Wrapped bracketed expressions inside roxygen blocks of
Glasso()andchatterjee_matrix()in backticks (e.g.,`[0, 1]`,`[j, k]`,`Q[i, j]`) so that roxygen2 no longer rewrites them as\link{}cross-references. Resolves R CMD check WARNINGs about missing link targets. -
Glasso()...documented: Added@param ...toGlasso()so that R CMD check’s “Undocumented arguments” WARNING is cleared. -
compute_EBIC_glasso()partial-match fix: Replaceddeterminant(Theta, log = TRUE)with the full argument namelogarithm = TRUE, removing the partial-argument-match NOTE.
exametrika 1.12.1
Bug fixes
-
Biclustering EM stability for empty fields/classes: Both
Biclustering.nominal()andBiclustering.ordinal()no longer abort with"missing value where TRUE/FALSE needed"when extreme grid configurations (e.g., very smallnclscombined with very largenfld) leave fields or classes empty during EM. The two log-likelihood checks inside the EM loop — the relative convergence test and the monotonicity guard — now treat a non-finitetest_log_likas a non-converged exit instead of throwing. Affected cells are returned withconverge = FALSEso thatGridSearch()skips them automatically when comparing criteria. This also resolves the same crash inBiclustering.rated(), which callsBiclustering.nominal()internally.
exametrika 1.12.0
New features
-
Class-side Confirmatory Biclustering:
Biclustering()now accepts aconf_classargument that fixes class memberships during EM. Likeconf(which fixes field memberships),conf_classaccepts either a vector of class labels (one per respondent) or a 0/1 membership matrix (respondents x classes). When supplied, the class-side E-step is overridden every iteration. For Ranklustering (method = "R"), the neighbour-smoothing step is skipped (smoothed_memb <- clsmemb) since smoothing pre-fixed labels would defeat the purpose of fixing them. Available forbinary,ordinal,nominal, andrateddata; can be combined withconfto fix both fields and classes simultaneously. Note:ratedre-orders classes by correct rate after estimation, so the output class labels may not match the input labels (the individual-to-class mapping is preserved up to relabeling).Number of model parameters (
nparam) is intentionally not adjusted whenconforconf_classis in effect: only PiFR / BCRM cell probabilities count as parameters in this implementation, and membership matrices are latent posteriors, not parameters.
Bug fixes
Confirmatory ordinal Biclustering: field membership now stays fixed during EM:
Biclustering.ordinal()was overwritingfldmembwith the E-step estimate every iteration, so theconf/conf_matargument only affected the initial value. Aligned the implementation withBiclustering.binary()by re-applyingfldmemb <- conf_matimmediately after the field-side E-step. With this fixresult$FieldEstimatedmatches the user-supplied assignment exactly.Confirmatory nominal Biclustering: conf argument is now actually honored:
Biclustering.nominal()validatedlength(conf)againstNCOL(U), butUis anexametrikalist object soNCOL(U)always returned 1. The check rejected every well-formedconfvector with “conf vector size does NOT match with data.”, making confirmatory nominal Biclustering unreachable since v1.10.0. Replaced withNCOL(U$Q)(and the matrix-formNROW(conf)check, plus theconf_matallocation, in the same way).Confirmatory ordinal Biclustering: conf length check actually validates input: same
NCOL(U)issue as nominal, but inBiclustering.ordinal(). Fixed by switching toNCOL(U$Q).Confirmatory binary Biclustering: conf size checks now reference the formatted response matrix explicitly:
Biclustering.binary()happened to work becauseUis rebound totmp$U * tmp$Zbefore the conf block, soNCOL(U)returned the item count. Switched toNCOL(tmp$U)for consistency with the ordinal/nominal fixes and to make the intent obvious to readers.Confirmatory Biclustering: matrix-form
confis no longer silently dropped: whenconfwas supplied as a membership matrix (items x fields) instead of a vector, all three implementations (binary,ordinal,nominal) validated the matrix but never copied it intoconf_mat, so the subsequentnfld <- NCOL(conf_mat)failed withobject 'conf_mat' not found. Addedconf_mat <- as.matrix(conf)in the matrix branch.Biclustering.ordinal()now honors themaxiterargument: The inner EM iteration cap was hardcoded to 100 (maxemt <- 100) and ignored the user-suppliedmaxiter. This mirrors the bug that was fixed forBiclustering.nominal()in 1.11.0. Callers that pass a largermaxiter(e.g.2000in Monte Carlo studies) now actually use that ceiling.GRM()fit indices no longer returnNaNfor moderate or larger item counts: The benchmark model usedconst <- exp(-nitems * 100)as a log-domain epsilon insidesum(cat_counts * log(cat_probs + const)). For about 8 or more items this expression underflows to exactly 0 in IEEE-754 double precision, solog(0) = -Infpropagates through0 * -Inf = NaNand poisons every downstream index (model_Chi_sq, NFI, CFI, RMSEA, AIC, CAIC, BIC). The benchmark and null loops now skip zero-count categories explicitly, removing the need for an additive epsilon.-
GRM()degrees of freedom were computed incorrectly: The model df was set ton_pattern * (ncat - 1) + 1and the null df ton_pattern * (ncat - 1), which is neither(# bench params) - (# model params)nor(# bench params) - (# null params). The inflated df then clampedCFI,TLI,IFI, andRMSEAto zero wheneverchi^2 < df(and the previousdf_A > df_Binequality was the wrong direction to begin with). The convention now matchesBiclustering.ordinal():bench_nparam_j = n_pattern * (ncat_j - 1)null_nparam_j = ncat_j - 1-
model_nparam_j = ncat_j(one slope plusncat_j - 1thresholds) df_A_j = bench_nparam_j - model_nparam_jdf_B_j = bench_nparam_j - null_nparam_j
GRM()now accepts any integer-coded ordinal responses, not just 1..K: Category counts were derived fromapply(dat, 2, max), which assumes responses are already 1-indexed. Data coded from 0 (e.g. 0..3) or with gaps (e.g. 1, 2, 4) undercountedncat[j]by one or more and then indexedgrm_prob()[resp]/v[resp]out of range, producing either an outrightinvalid subscript type 'list'error (onJ15S3810-style data) or silently truncated threshold columns. Each item’s responses are now remapped to contiguous 1..K codes viamatch()against the sorted unique values on entry, withncat[j]derived from the mapped levels; both the R model-fit blocks and the C++ log-likelihood receive 1-based input regardless of the user’s coding.GridSearch()now tolerates per-cell fit errors: Previously, a singleBiclustering()(orLCA()/LRA()) call that raised an error at a grid corner (for example, empty-cluster edge cases at largencls/nfldwith smallnobs/nitems) would propagate out ofGridSearch()and abort the entire grid. The call to the underlying analysis function is now wrapped intryCatch, and errors are handled the same way as non-convergence: the cell is markedNAin the index matrix and the(ncls, nfld)pair is recorded infailed_settings.GridSearch()still raises only when all grid cells fail, preserving the existing “all-failed” error.
Performance
-
C++ implementation of the IRM Gibbs sampler core: The collapsed Gibbs sampler shared by
Biclustering_IRM.nominal(),Biclustering_IRM.ordinal(), andBiclustering_IRM.rated()is now implemented in C++ via Rcpp (src/irm_gibbs_core.cpp). The R reference implementation inR/00_IRM_Gibbs_CORE.Ris preserved behindirm_gibbs_core(..., use_cpp = FALSE)for cross-checking.-
Numerical reproducibility: With the same
set.seed(), the C++ path produces output bit-identical to the R reference. RNG calls are routed through R-levelsample.int()andrmultinom()(viaRcpp::Function) so theunif_rand()consumption order matches base R exactly. The C-level entry points (Rcpp::sample,R::rmultinom) consume RNG differently from base R and were explicitly avoided. -
Wall-clock: roughly 4x speedup on the inner Gibbs loop on the bundled test datasets (J20S600 nominal: 82 to 20 ms/iter; J35S500 ordinal: 76 to 19 ms/iter). The end-to-end
Biclustering_IRM()call also benefits proportionally on larger iteration counts (e.g. simulation runs). -
No new dependencies: Rcpp is already in
LinkingTo:; the implementation uses onlyRcpp::Functionand<vector>/<cmath>.
-
Numerical reproducibility: With the same
-
Vectorized EM hot path in
Biclustering.ordinal(): The per-iteration cost of the ordinal EM loop has been reduced by rewriting five hot spots in base R without introducing new package dependencies.- Replaced
apply(Ufcq_prior, c(1, 2), function(x) rev(cumsum(rev(x))))with an in-place reverse cumulative sum loop over the category axis. The previous form dispatchednfld * nclsR-level calls per EM iteration; the new form performsmaxQ - 1vectorized array additions. - Replaced
apply(X, 1, min)andapply(X, 1, max)withdo.call(pmin.int, as.data.frame(X))/do.call(pmax.int, as.data.frame(X)). These compute the row-wise reduction in a small number of C-level calls rather than one R-level call per row.apply(X, 1, which.max)was similarly replaced bymax.col(X, ties.method = "first"). - Precomputed
log(BBRM[,,q] - BBRM[,,q+1] + const)once per EM iteration instead of independently in the class-side and field-side E-steps for everyq. - Precomputed
Z * Uq[,,q]once per fit (call itZU) via column-major recycling (Uq * as.vector(Z)), replacing about eight separate elementwise products per EM iteration and reusing the same array in the post-EM fit-index blocks. Thereplicate(maxQ, Z)allocation that producedZrephas been removed as a byproduct. - Replaced
apply(X, c(1, 2), sum)andapply(X, c(2, 3), sum)on 3-D arrays withrowSums(X, dims = 2)/colSums(X, dims = 1), andapply(M, 2, sum)on matrices withcolSums(M).
Output is bit-identical to 1.11.0 on every tested configuration (
max(abs(old - new)) == 0forBCRM,BBRM,ClassMembership,FieldMembership,TestFitIndices, and the full EM trajectory). Single-fit wall-clock on typical sizes (ncls, nfld up to 20 by 15 on J35S500) improves by roughly 1.2 to 1.3 times; the per-EM-iteration speedup compounds acrossGridSearch()grids. - Replaced
Vectorized 3-D apply reductions in
Biclustering.nominal(): The samerowSums/colSums(X, dims = ...)substitutions were applied to the nominal M-step and null-model blocks, andZrepwas eliminated in favor of theZUprecomputation. Output is bit-identical to 1.11.0.Vectorized
Uqone-hot encoding inBiclustering.ordinal()andBiclustering.nominal(): The construction of the one-hot response arrayUq[i, j, tmp$Q[i,j]] = 1previously used anobs * nitemsnested R loop. It now writes all ones in one C-level matrix-index assignment, restricted to non-missing cells (tmp$Z == 1). Single-fit wall-clock on the validation matrix improves by 1.2-5.3x over 1.11.0 (up to 5x on small cases where the loop overhead dominated). Output is bit-identical to 1.11.0 at every downstream location (the missing entries of the oldUqwere never read because every consumer applies thetmp$Zmask).
Output structure
-
Biclustering.ordinal()now returnsSmoothedMembership: The smoothed (Ranklustering-filtered) class membership matrix is now part of the return value, mirroringBiclustering.binary(). This fills a long-standing gap (only the binary form previously exposed it) and makes Ranklustering withconf_classintrospectable: callers can verify that the smoothing step is correctly skipped when class labels are pre-fixed (SmoothedMembershipequalsClassMembershipin that case).
Tests
- Added a
print()smoke test forBiclustering_IRM.rated()results (test-irm-rated.R). - Added an
nrank = 4LRA.ratedregression test forDistractorAnalysis()to cover varying rank counts (test-distractor.R).
Notes
- No changes to package
ImportsorDepends. The new C++ Gibbs sampler uses Rcpp, which was already declared inLinkingTo:. - No new exported functions. The new
conf_classargument onBiclustering()is additive and defaults toNULL, preserving the previous behavior for all existing callers.
exametrika 1.11.0
CRAN release: 2026-04-15
New Features
Biclustering_IRM.rated(): Rated IRM (Infinite Relational Model for multiple-choice data): Performs IRM-based biclustering for rated data (items with correct answers and multiple response categories). Internally callsBiclustering_IRM.nominal()for estimation via Dirichlet-Multinomial collapsed Gibbs sampler, then post-processes the results: classes are sorted by correct response rate (ranklustering), and two layers of fit indices are reported — binary (item correct/incorrect, with full benchmark model including CFI/RMSEA) and nominal (category-level, AIC/BIC/CAIC only). ReturnsTestFitIndices(binary, default) andTestFitIndices_nominal(nominal) in the output.DistractorAnalysis(): Distractor analysis for rated models: S3 generic function for analyzing response category distributions by rank/class. Computes observed frequency tables, proportion tables, chi-square tests against chance level, and Cramer’s V effect sizes for each item-by-rank cell. Works withLRA.ratedandBiclustering.rated/Biclustering_IRM.ratedresults. For Biclustering models, output is grouped by field. Supportsitemsandranksfiltering in bothprint()andplot()methods.
New Data
-
J21S300: New rated sample dataset (21 items, 300 students, 4 response categories) for testing rated Biclustering and IRM models. Smaller and faster than J35S5000 (35 items, 5000 students).
Bug Fixes
Fixed
maxiterparameter ignored inBiclustering.nominal(): Themaxiterparameter was accepted but internally overridden by a hardcodedmaxemt <- 100. Now correctly usesmaxiteras the iteration limit.Fixed spurious “No ID column detected” message in
Biclustering.rated()andBiclustering_IRM.rated(): Thecrr()function was called with a raw matrix (tmp$Z * tmp$U) instead of an exametrika object, triggering an unnecessarydataFormat()call. Now creates a temporary binary-typed exametrika object to avoid the message.
exametrika 1.10.2
New Features
-
Biclustering.rated(): Rated (multiple-choice) Biclustering: Performs biclustering for rated data (items with correct answers and multiple response categories). Internally callsBiclustering.nominal()for estimation, then post-processes the results: classes are sorted by correct response rate (ranklustering), and two layers of fit indices are reported — binary (item correct/incorrect, with full benchmark model) and nominal (category-level, AIC/BIC/CAIC only). The binary layer uses item-level correct response rates per class without field constraints (nparam = nitems * ncls). Supports both Biclustering (method = "B") and Ranklustering (method = "R") modes. ReturnsTestFitIndices(binary) andTestFitIndices_nominal(nominal) in the output. Added 16 tests for rated Biclustering using J35S5000.
Improvements
-
Renamed
ItemFRPtoquasiFRPinBiclustering.rated()output: The item-level correct response rate matrix (J x C) is computed without field constraints because the field assignments come from nominal analysis and have different meaning in the binary context. The namequasiFRP(quasi Field Reference Profile) clarifies this distinction from the standard field-constrained FRP.
Bug Fixes
-
Fixed
subscript out of boundsin nominal/ordinal Biclustering with largenfld: The initial field assignmentceiling(1:nitems / (nitems / nfld))could exceednflddue to floating-point rounding. Addedpmin(..., nfld)clamping, consistent with the binary Biclustering fix already in place. -
Fixed redundant
dataFormat()call inBiclustering.rated(): The function was unnecessarily re-callingdataFormat()on already-formatted data, causing repeated “No ID column detected” messages duringGridSearch(). Now reuses the existing exametrika object directly. -
Fixed Array plot for polytomous Biclustering (rated/nominal/ordinal): Array plots for polytomous Biclustering models were rendered in black and white because
x$U(binary correctness matrix) was used instead ofx$Q(polytomous responses). Now correctly usesx$Qfor polytomous models. -
Fixed FCRP plot
invalid graphics stateerror:par(mfrow=...)andlayout()conflicted when plotting FCRP/FCBR. Now skipspar(mfrow=...)for plot types that uselayout()internally. -
Improved
idparameter validation indataFormat(): When a vector (e.g.,id = tmp$ID) was passed instead of a column number, the error message was cryptic (the condition has length > 1). Now validates thatidis a single integer and provides a clear error message. -
Fixed nominal Biclustering/IRM fit indices: Removed benchmark (saturated) model for nominal data. With many items and categories, every examinee has a unique response pattern, making the benchmark model trivially saturated (
ell_B = 0) and chi-square based indices (NFI, RFI, IFI, TLI, CFI, RMSEA) meaningless. These indices are now reported asNAfor nominal data. Information criteria (AIC, BIC, CAIC) are computed directly from the model log-likelihood and remain available. Also fixed alength(benchGroup)→length(unique(benchGroup))bug inBiclustering.nominal()(theunique()call was missing).
Improvements
-
Added empty field warning for all Biclustering models: When some fields have no items assigned (e.g., due to specifying too many fields), a warning message is now emitted suggesting to reduce
nfld. AffectsBiclustering()(binary/ordinal/nominal),Biclustering_IRM()(binary/ordinal/nominal). -
Renamed
fieldtofldinBiclustering_IRM.binary(): Internal variable name changed fromfieldtofldfor consistency with other Biclustering models. No change to the public API (FieldEstimatedoutput name is unchanged).
Documentation Fix
- Fixed J35S5000 UseCase in data format tables: Corrected from “Nominal LRA” to “Rated LRA” in getting-started vignette, and from “名義LRA” to “評定LRA” in Japanese guide. J35S5000 is a rated (multiple-choice with correct answers) dataset, not nominal.
-
Fixed J15S3810 roxygen documentation: The
@formatfield incorrectly stated “nominal responses” but the dataset is ordinal (response.type=ordinal). Also fixed “A ordinal” to “An ordinal” in@description.
exametrika 1.10.1
CRAN release: 2026-03-19
Vignette Build Time Reduction
-
Reduced vignette build time from ~46 minutes to ~5 minutes: Added
eval=FALSEto computationally intensive code chunks in vignettes (GridSearch, IRM, LDLRA, LDLRA_PBIL, LDB, BINET, ordinal/nominal Biclustering, ordinal/rated LRA). The Japanese guide (guide-ja) now useseval=FALSEfor all model estimation chunks to avoid duplicating computation from English vignettes. Full rendered output is available on the pkgdown site.
exametrika 1.10.0
Bug Fixes
CAIC (Consistent AIC) Formula Correction
-
Fixed CAIC formula to match Bozdogan (1987) original definition: The CAIC penalty term was
log(n + 1)but should belog(n) + 1per Bozdogan (1987, Psychometrika, 52(3), p.358, Proposition 2, Eq.44). The original Mathematica implementation had this error (Log[nobs + 1]), and the R port inherited it. Both the R version (R/00_ModelFitModule.R) and the Mathematica version (develop/mtmk15forVer13/mod/Module_ModelFit.nb) have been corrected. The numerical difference is approximately 1 (constant), but the corrected formula now matches the published definition:CAIC(k) = -2 log L + k * (log(n) + 1). This affects all models that compute fit indices: IRT, LCA, LRA (binary/ordinal/rated), Biclustering (binary/ordinal/nominal), IRM, BNM, LDLRA, LDB, BINET, and GRM. All 873 tests pass with the corrected formula.
GRM Example Fix
-
Changed GRM examples from
\donttestto\dontrun: GRM’s multi-panel plot examples caused “invalid graphics state” errors in non-interactive environments (pkgdown, CI). Changed to\dontrunto prevent build failures.
dataFormat Robustness Improvements
-
Fixed auto-detection ignoring
CAparameter: WhenCA(correct answer vector) was provided butresponse.typewas not explicitly specified,dataFormat()incorrectly classified the data as"ordinal"instead of"rated". This caused$U(binary scoring matrix) to beNULL. The auto-detection now checks forCAbefore ordinal/nominal detection: binary → rated (if CA provided) → ordinal → nominal. -
Fixed
idparameter not working for column 1: Changediddefault from1toNULL. Previously,id = 1(both default and explicit) triggered auto-detection heuristics, making it impossible to explicitly specify the first column as the ID column. Nowid = NULLtriggers auto-detection, and any numeric value (including1) forces that column to be used as ID. -
Improved ID auto-detection for consecutive integers: Simplified the first-column heuristic to treat unique consecutive integers (e.g.,
1:N) as ID regardless of whether they also look like valid response values. Previously,1:10was misclassified as response data becauselooks_like_response_data()returned TRUE. -
Fixed missing values in rated
Umatrix: When the response matrix contained missing values (-1), the binary scoring matrixUincorrectly scored them as0(incorrect) instead of-1(missing). NowU[i,j] = -1whenQ[i,j] = -1. -
Fixed
drop=FALSEmissing in item exclusion: When items were excluded due to invalid variance (e.g., containingInf), the column subsettingresponse.matrix[, mask]dropped matrix dimensions if only one item remained, causing a crash. Addeddrop = FALSE. -
Added diagnostic messages:
dataFormat()now reports viamessage()when it detects problematic data:- Items with all missing values
- Items with zero variance (constant response values)
- Students with all missing responses
BINET g_list / adj_list Input Path Fix
-
Fixed
g_csvvariable undefined error when usingg_listoradj_listinput:BINET()crashed with an undefined variable error at the graph construction step when the DAG was specified viag_listoradj_listparameters. The internal variableg_csv(used to build the integrated graph objectall_g) was only defined in theadj_filecode path. Added logic to reconstructg_csvfromadj_listfor theg_listandadj_listinput paths, ensuringall_gis correctly built with Field edge attributes regardless of input method. -
Fixed
g_list/adj_listlength validation: The length check forg_listandadj_listincorrectly compared againstncls(number of classes) instead ofnfld(number of fields). In BINET, each element ofadj_listrepresents the DAG structure at a specific field, so the list length should equalnfld. Also fixedg_listtype check fromg_list[[1]](always checking the first element) tog_list[[j]](checking each element).
Biclustering_IRM.binary S3 Method Consistency Fix
-
Added
...toBiclustering_IRM.binary()signature: The S3 genericBiclustering_IRM(U, ...)requires all methods to include...in their formal arguments. The.binarymethod was missing it, causing an R CMD check WARNING. Added...to match the generic and the.nominal/.ordinalmethods.
Biclustering_IRM msg Field Fix
-
Fixed IRM
msgfield to correctly distinguish Rank vs Class models: Binary IRM and Ordinal IRM are Ranklustering models (ordered latent classes), somsg = "Rank"is correct. Nominal IRM has no Ranklustering concept (unordered latent classes), somsg = "Class"is correct. Previously all three methods had inconsistent values; nowBiclustering_IRM.binaryandBiclustering_IRM.ordinalreturnmsg = "Rank", whileBiclustering_IRM.nominalreturnsmsg = "Class". Also updated internal column names ofcls01andFRPfrom"Class"to"Rank"for binary/ordinal IRM. The shared Gibbs core (irm_gibbs_core()) output column names were also updated.
Biclustering_IRM.binary Missing LRD Alias
-
Added
LRD(Latent Rank Distribution) alias toBiclustering_IRM.binary()return value: The binary IRM was the only Biclustering model that did not includeLRDin its return value (it only hadLCD). Other Biclustering models (binary Biclustering, nominal IRM, ordinal IRM) all return bothLRDandLCD. AddedLRD = clsdistas an alias forLCDto ensure consistency across all Biclustering-family models. This improves interoperability with downstream packages (ggExametrika) that look upLRDwhenmsg == "Rank".
Biclustering_IRM Seed Default
-
Reverted
Biclustering_IRM()seed default back to 123: Ensures reproducibility by default.
Biclustering_IRM t(apply()) Dimension Drop Fix
-
Fixed
t(apply(log_S, 1, irm_log_to_prob))dimension drop in Nominal/Ordinal IRM: When the Gibbs sampler converged toncls=1ornfld=1,apply()on a single-column matrix returned a vector instead of a matrix, causingt()to produce a 1-row matrix instead of an N-row matrix. This led to incorrect class/field membership assignment. Replaced all 6 instances oft(apply(mat, 1, fun))with explicit for-loops in bothBiclustering_IRM.nominal()(3 locations: EM E-step, final class membership, final field membership) andBiclustering_IRM.ordinal()(3 locations: same). Consistent with the project’sapply()caution policy.
Biclustering_IRM Log-Probability Normalization Fix
-
Fixed log-to-probability conversion in
Biclustering_IRM()Gibbs sampler: Changedexp(ptab - min(ptab))toexp(ptab - max(ptab))for numerical stability. The previous implementation subtracted the minimum log-probability, which could cause overflow (exp(large positive) = Inf) when the range of log-probabilities was large, resulting inNaNafter normalization. Subtracting the maximum ensures the largest value becomesexp(0) = 1and all others underflow harmlessly to near-zero values.
Biclustering.nominal Model Fit Fix
-
Fixed
Biclustering.nominal()using stale log-likelihood in model fit indices: When the EM algorithm exited due to log-likelihood decrease,BCRMwas correctly reverted to the previous iteration’s value, buttest_log_likwas not. The model fit section recalculated the correct log-likelihood astestell, butchi_A,model_log_like,log_lik, andLogLikall referenced the staletest_log_likinstead oftestell. Also removed a duplicated model fit code block (copy-paste error).
J20S400 Dataset Fix
-
Fixed
J20S400response type fromnominaltobinary: TheJ20S400.rdadataset was incorrectly stored withresponse.type = "nominal"despite being a binary (0/1) dataset with -99 as missing values. Missing values were not properly handled (Z was all 1s, Q contained raw -99 values). Regenerated from the original CSV source (develop/sampleData/J20S400.csv) withdataFormat(..., na = -99), now correctly typed asbinarywith 86 missing values properly masked in Z.
New Features
Polytomous IRM (Biclustering_IRM.nominal / Biclustering_IRM.ordinal)
-
New
Biclustering_IRM.nominal()for nominal/polytomous data: Extends the Infinite Relational Model (IRM) from binary to nominal scale data using a Dirichlet-Multinomial collapsed Gibbs sampler. The Chinese Restaurant Process (CRP) automatically determines the optimal number of classes and fields. After the Gibbs sampling phase, small classes are consolidated and refined with an EM algorithm. The Dirichlet prior concentration parameteralphacontrols smoothing of category probabilities. -
New
Biclustering_IRM.ordinal()for ordinal/polytomous data: Extends IRM to ordinal scale data. Shares the same Dirichlet-Multinomial collapsed Gibbs sampler as nominal IRM (Phase 1), then applies ordinal-specific EM refinement (Phase 2) with cumulative normalization to enforce monotonic category boundaries. Themicparameter (defaultTRUE) enforces monotone increasing class ordering by expected score sum. Reports BFRP (Bicluster Field Reference Profile), FRPIndex, TRP, and Strongly/Weakly Ordinal Alignment Conditions (SOACflg/WOACflg). -
Biclustering_IRM()is now an S3 generic: Dispatches toBiclustering_IRM.binary(existing binary IRM),Biclustering_IRM.nominal(new), andBiclustering_IRM.ordinal(new). Raw data is automatically formatted and dispatched based onresponse.type. -
Shared Gibbs sampler core: The collapsed Gibbs sampler has been extracted into a shared internal function
irm_gibbs_core()(inR/00_IRM_Gibbs_CORE.R), used by both nominal and ordinal IRM. Helper functions (irm_calc_Ufcq,irm_lmvbeta,irm_log_to_prob,irm_bic_calc, etc.) are also shared. -
Performance optimization: The Gibbs sampler uses differential updates for the sufficient statistics array
U_fcq, computing only the contribution of the target student/item rather than recalculating the full array at each step.
Confirmatory LCA/LRA (Test Equating)
-
LCA()andLRA()now support aconfparameter for confirmatory analysis: Theconfargument accepts an IRP matrix (ncls/nrank x testlength) where non-NA values are held fixed throughout EM estimation and NA values are freely estimated. This enables test equating scenarios where anchor items retain their known IRPs while new items are calibrated against them. -
Label-based item matching: When
confhas column names, items are matched by label rather than by position. This allowsconfto contain a subset of items (anchor items only) or items in a different order than the data. Items in the data but not inconfare automatically set to freely estimated. Unknown labels inconfproduce an informative error. - Works with both GTM and SOM methods for LRA.
Internal Refactoring: SOM Estimation
-
Extracted SOM estimation into
somclus()internal function: The Self-Organizing Maps estimation code previously inlined inLRA.binary()(~100 lines) has been extracted into a standalone internal functionsomclus()in00_EMclus.R. This parallelsemclus()(GTM/EM) and returns the same structure. Also fixed a pre-existing typo (h_cout→h_count) and another (oldsBIC→oldBIC).
Test Suite Modernization
-
Complete migration from Excel to CSV fixtures: Removed all 14 legacy test files that depended on
tidyverseandreadxlfor reading Excel-based Mathematica reference data. Replaced with 24 modern test files using base Rread.csv()andtest_path()to load CSV fixtures fromtests/testthat/fixtures/mathematica_reference/. The new test suite has zero external package dependencies beyondtestthat. -
Removed
readxl/tidyversefrom test dependencies: DESCRIPTIONSuggestsno longer requires any packages beyondknitr,rmarkdown, andtestthat. - Fixture file reorganization: Shortened overly long CSV fixture filenames to comply with CRAN’s 100-byte portable path requirement.
- Test coverage: 26 test files, 321 test blocks, covering all models (CTT, IRT 2PL/3PL/4PL, LCA, LRA binary/ordinal/nominal, Biclustering binary/ordinal/nominal, IRM binary/nominal/ordinal, BNM, LDLRA, LDB, BINET, GRM, GridSearch, dataFormat, polychoric correlation, scoring, student/test analysis, confirmatory LCA/LRA). 85 Mathematica reference CSV files for cross-validation.
-
Added Nominal IRM tests (
test-irm-nominal.R): 18 test blocks forBiclustering_IRM.nominal()using J20S600 data — basic execution, dimensions, FRP validity, membership, fit indices, backward compatibility, seed reproducibility, alpha validation. -
Added Ordinal IRM tests (
test-irm-ordinal.R): 25 test blocks forBiclustering_IRM.ordinal()using J35S500 data — basic execution, dimensions, FRP validity, expected scores, TRP, BFRP, FRPIndex, SOAC/WOAC flags, mic parameter, fit indices, backward compatibility, seed reproducibility, alpha validation.
Documentation
-
TestStatistics example: Added stem-and-leaf plot example using
stem(nrs(dataFormat(J15S500)))to demonstrate score distribution visualization.
Internal Improvements
- pkgdown migration: Migrated documentation site from Jekyll (main/docs) to pkgdown (gh-pages branch via GitHub Actions).
- CI/CD: Added GitHub Actions workflows for automated R CMD check, test coverage reporting, and pkgdown site deployment. Removed Codecov upload step from test-coverage workflow.
-
.Rbuildignore cleanup: Removed
^tests$and^inst$entries that were incorrectly excluding tests and vignettes from the built package.
exametrika 1.9.0
Bug Fixes
GridSearch index Parameter Fixes
-
Index alias support:
GridSearch()now accepts common aliases for fit indices."loglik","log_lik","LogLik", and"LL"are mapped to"model_log_like"."Chi_sq"and"chi_sq"are mapped to"model_Chi_sq". Previously, using these aliases caused silentNULLextraction and eventual errors. -
Early validation: Invalid index names are now caught immediately at the start of
GridSearch(), before the computationally expensive grid search loop runs. The error message lists all valid options including available aliases. -
Log-likelihood optimization direction:
model_log_likeis now correctly treated as a maximization target (larger log-likelihood = better fit). Previously, it was incorrectly placed in the minimization group, which would have selected the worst-fitting model.
Test Tolerance Fix
-
Q3 matrix test: Changed the 2PL Q3 matrix test from relative tolerance (
tolerance = 1e-2inexpect_equal) to absolute difference comparison (threshold 0.005). Q3 residual correlations include values near zero where relative tolerance comparisons are unreliable.
NAMESPACE Fix
-
Missing imports: Added
layoutandplot.newfromgraphicsto NAMESPACE. These functions are used by the legend strip layout helpers for polytomous Biclustering plots.
LRA.ordinal / LRA.rated Category Computation Fix
-
Fixed
apply(U$Q, 2, unique)returning matrix instead of list: When all items have the same number of response categories (e.g., all 5-point Likert),apply()returns a matrix rather than a list. The subsequentlapply()then iterates over individual elements instead of per-column vectors, causingncatto be a vector of 1s and crashing the algorithm. Replaced withlapply(seq_len(nitems), function(j) sort(unique(U$Q[, j])))which always returns a proper list. Same fix applied tocatfreq999computation. BothLRA.ordinalandLRA.ratedwere affected.
GRM ItemFitIndices Computation Fix
-
Fixed
apply(tmp$Q, 2, table)returning matrix instead of list: Same class of bug as the LRA.ordinal/LRA.rated fix above. InGRM(), the null model log-likelihood computation usedapply(tmp$Q, 2, table)to compute per-item category frequencies. When all items have the same number of response categories (e.g., all 5-point Likert),apply()returns a matrix instead of a list, causingresponse_list[[j]]to extract a single number rather than the full frequency table. This produced incorrectnull_log_likevalues and consequently wrong chi-square statistics, RMSEA, TLI, and CFI inItemFitIndices. Replaced withlapply(seq_len(nitems), function(j) table(tmp$Q[, j]))which always returns a proper list.
LRA.ordinal Mixed Category Count Validation
-
Added input validation for mixed category counts:
LRA.ordinal()now raises an informative error when items have different numbers of response categories (e.g., some items with 3 categories and others with 5). The internal matrix algebra uses fixed-stride indexing that assumes uniform category counts. The error message suggests alternatives (LRA.rated,Biclustering.ordinal) that support mixed category counts via list-based designs.
LCA/LRA FRP Plot Type Removal
-
Removed “FRP” from valid plot types for LCA and LRA: Field Reference Profile (FRP) requires a field structure (item grouping), which LCA and LRA do not have. Previously,
plot(lca_result, type = "FRP")passed validation but failed at runtime because the$FRPfield does not exist in LCA/LRA return values. Now properly rejected with an informative error message at the validation stage.
New Features
New Sample Datasets for Polytomous Biclustering
- J35S500: Simulated ordinal dataset (500 students, 35 items, 5 categories) with a cumulative staircase pattern (5 latent classes, 5 fields). Contains approximately 0.5% missing values.
- J20S600: Simulated nominal dataset (600 students, 20 items, 4 categories) with a cyclic category preference pattern (5 latent classes, 4 fields). Contains approximately 0.5% missing values.
New Plot Types for Polytomous Biclustering
-
FRP (Field Reference Profile): Expected score line plot per field, with
statparameter supporting"mean"(default),"median", and"mode". -
FCRP (Field Category Response Profile): Category probability plot per field, with
styleparameter supporting"line"(default) and"bar"(stacked bar chart). - FCBR (Field Cumulative Boundary Reference): Boundary probability plot per field (ordinal Biclustering only).
- ScoreField: Heatmap of expected scores across fields and latent classes/ranks.
-
RRV (Rank Reference Vector): Transposed view with fields on x-axis and expected scores on y-axis, with
statparameter.
FRPIndex for Ordinal Biclustering
- Ordinal Biclustering now computes
FRPIndex(Field Reference Profile indices) including location parameters (Alpha, Beta), slope parameters (A, B), and monotonicity indices (Gamma, C).
New Parameters for plot.exametrika()
-
stat: Controls the summary statistic for FRP and RRV plots ("mean","median","mode"). -
style: Controls the display style for FCRP plots ("line","bar").
Array Plot Improvements
-
Missing value display: Array plots now display missing values in a distinct color. Binary data uses gray (
#808080) to distinguish from white (incorrect) and black (correct). Polytomous data uses black (#000000) to distinguish from the category color palette.
Print Method Improvements
-
Ordinal Biclustering:
print()now displays FRPIndex (Field Reference Profile Indices) with a note that the values are based on normalized expected scores(E[score]-1)/(maxQ-1).
Documentation Improvements
-
FRPIndex: Expanded documentation for the 6 profile shape indices (Alpha, A, Beta, B, Gamma, C) in
?Biclustering, including detailed definitions and polytomous adaptation logic.
Return Value Structure Unification
Systematic unification of return value structures across all analysis functions for consistency and interoperability.
snake_case Field Names Extended to All Functions
-
LDLRA: Added
n_class(retainingNclassfor backward compatibility) -
LDB: Added
n_rank,n_field(retainingNrank,Nfield) -
BINET: Added
n_class,n_field(retainingNclass,Nfield) -
Biclustering.nominal: Added
n_class,n_field,n_cycle(retainingNclass,Nfield,N_Cycle) -
Biclustering.ordinal: Added
n_class,n_field,n_cycle(retainingNclass,Nfield,N_Cycle) -
Biclustering_IRM: Added
n_cycle,N_Cycle(retainingem_cycle,EM_Cycleas IRM-specific aliases)
Top-Level log_lik Added to All Functions
- All analysis functions now consistently provide
log_likat the top level of the return object, matchingTestFitIndices$model_log_like. - Functions updated: IRT, LCA, LRA.binary, BNM, LDLRA, LDB, BINET, Biclustering.binary, Biclustering_IRM
TestFitIndices Structure Unified
-
GRM, Biclustering.nominal, Biclustering.ordinal: TestFitIndices now uses the full 16-field structure with
ModelFitclass, matching the format used by IRT/LCA/LRA and other functions. Previously these used barecalcFitIndices()output (9 fields, no class). Added fields:model_log_like,bench_log_like,null_log_like,model_Chi_sq,null_Chi_sq,model_df,null_df. -
GRM ItemFitIndices: Also unified to the full 16-field structure with
ModelFitclass. -
BINET:
TestFitIndicesadded as primary name for multigroup fit indices (previously onlyMG_FitIndices).MG_FitIndicesretained as backward-compatible alias.SM_FitIndices(saturated model) remains unchanged.
Students Matrix Enhanced
-
Biclustering.nominal: Added
Estimatecolumn (most probable class assignment) to the Students matrix. -
Biclustering.ordinal: Added
Estimatecolumn (most probable class assignment) to the Students matrix.
Other Structural Improvements
-
Biclustering_IRM: Added
FRPIndex(Field Reference Profile indices) for consistency with Biclustering.binary and LDB. -
LDB: Fixed
TRPfrommatrix(1×ncls)tonumeric vector, consistent with all other functions. -
GridSearch: Added
class = c("exametrika", "GridSearch")to return value for method dispatch support.
Bug Fixes
-
LCA
msgfield assignment: Fixedmsg <- "Class"tomsg = "Class"insidestructure()call (line 150 of05_LCA.R). The<-operator was being interpreted as a standalone assignment rather than a named list element, causing themsgfield name to be empty. -
RMP/CMP single student plot error: Fixed dimension drop error when plotting RMP or CMP for a single student (e.g.,
plot(r, type="RMP", students=1)). Addeddrop = FALSEto prevent matrix-to-vector coercion when extracting a single row from the Students matrix. -
LRA.ordinal / LRA.rated
TestFitIndiceslog-likelihood fields: Fixednull_log_likewhich incorrectly stored the saturated model log-likelihood (log_lik_satu) instead of the null model log-likelihood (sum(null_itemll)). Added missingbench_log_likefield containing the saturated model log-likelihood (sum(satu_itemll2)). Note: the chi-square-based fit indices (NFI, CFI, TLI, RMSEA, AIC, BIC, etc.) were always computed correctly; only the stored log-likelihood labels were affected. -
LRA.ordinal / LRA.rated FitIndices structure: Unified
TestFitIndicesandItemFitIndicesto the standard 16-field structure withModelFitclass (c("exametrika", "ModelFit")), matching all other analysis functions. Addedmodel_log_like,bench_log_like,null_log_liketoItemFitIndices. RemovedScoreRankCorr/RankQuantCorrfromTestFitIndices(already available at the top level of the return object). -
LRA.ordinal / LRA.rated test updates: Updated
test-12OLR.Randtest-13NLR.Rto handle the newModelFitclass (addunclass()beforeas.data.frame()) and adjusted column/index references to match the unified 16-field structure.
Plot Layout Improvements
-
Legend strip layout: Moved per-panel legends to a shared legend strip below the plot area for FCRP (line/bar), FCBR, GRM IRF, and IRT overlay (IRF/IIF) plots. Uses
layout()with a thin dedicated row (height ratio 0.2) to reduce visual clutter in data panels. Addedsetup_legend_layout()anddraw_legend_strip()internal helper functions. -
FCBR reference line: Added
P(Q>=1)=1.0reference line at the top of FCBR plots for visual completeness.
exametrika 1.8.1
CRAN release: 2026-02-17
Bug Fixes
dataFormat Function
-
Fixed factor ID column detection:
dataFormat()now correctly identifies factor-type ID columns before converting factors to numeric. Previously, the factor-to-numeric conversion occurred before ID detection, causing factor ID columns with many levels (>=20) to trigger a “Too many categories” error instead of being recognized as IDs. -
Removed unused helper function: Removed dead code (
is_response_data()) that was defined but never called.
GridSearch Function
-
Fixed ordinal data support: GridSearch now correctly handles ordinal data by using
obj$Qinstead ofobj$Ufor test length calculation - Resolved nfld=1 parameter issue: Eliminated invalid parameter ranges that caused crashes with ordinal datasets
Biclustering.ordinal Function
-
Enhanced numerical stability: Added
pmax(Ufcq_prior, 1e-10)to prevent division by zero and NaN errors - Fixed convergence failures: Resolved “missing value where TRUE/FALSE needed” errors in specific parameter combinations (e.g., ncls=4 with nfld=5)
- Improved robustness: Algorithm now handles edge cases where field membership probabilities approach zero
exametrika 1.8.0
CRAN release: 2025-12-10
Naming Convention Improvements
This release improves naming consistency across the package while maintaining full backward compatibility through a deprecation path.
New Field Names (Recommended)
All analysis functions now return results with snake_case field names for better consistency:
-
n_class- Number of latent classes (replacesNclass) -
n_field- Number of latent fields (replacesNfield) -
n_rank- Number of latent ranks (replacesNrank) -
n_cycle- Number of EM iterations (replacesN_Cycle) -
log_lik- Log-likelihood value (replacesLogLik)
Deprecated Field Names (Still Supported)
The old field names continue to work for backward compatibility:
-
Nclass,Nfield,Nrank,N_Cycle,LogLik- Deprecated but functional - These fields will be removed in version 2.0.0
- Please update your code to use the new snake_case names
Output Formatting Improvements
Progress messages now display properly in R Markdown documents:
-
GridSearch() - Added
verboseparameter (default:TRUE)- Output organized by row:
ncls = 2: nfld=2 nfld=3 nfld=4 ... - Set
verbose = FALSEto suppress all progress messages
- Output organized by row:
-
Biclustering_IRM() - Improved iteration display
- Format:
iter 1: match=0 nfld=15 ncls=30 - Class adjustment messages:
Adjusting classes: BIC=-99592.5 ncls=21 (min size < 20)
- Format:
-
LRA.ordinal() - Fixed verbose behavior
- Changed default from
verbose = TRUEtoverbose = FALSE(consistent with binary/rated versions) - Saturation Model:
Saturation Model - iter 1: log_lik=-1.234567 - Restricted Model:
Restricted Model - iter 1: log_lik=-0.987654
- Changed default from
-
LRA.rated() - Fixed verbose behavior
- Changed default from
verbose = TRUEtoverbose = FALSE(consistent with binary/ordinal versions) - Same improved format as LRA.ordinal
- Changed default from
All progress messages now use proper line breaks instead of carriage returns, ensuring clean output in R Markdown/knitr documents and web documentation.
Bug Fixes
- Fixed Array plot color mapping for binary data
- Used
sort(unique(...))to ensure consistent ordering: 0 (white/incorrect) → 1 (black/correct) - Previously, color mapping could be reversed depending on data order
- Used
- Fixed Ranklustering Array plot sorting order
- Students with higher correct response rates now appear at the bottom of the plot
- Previously, high performers were incorrectly placed at the top
exametrika 1.7.0
CRAN release: 2025-11-22
- Renamed IRM() to Biclustering_IRM() for consistency with structure learning naming conventions
- Follows the same pattern as BNM_GA(), LDLRA_PBIL(), etc. (model_method naming)
- IRM() function still works but is now deprecated with a warning using .Deprecated()
- The new name clarifies that this function performs Biclustering structure learning using the Infinite Relational Model
- All documentation and examples updated to use Biclustering_IRM()
- Added .Deprecated() warnings to renamed functions from version 1.6.5
- StrLearningGA_BNM() now shows deprecation warning, recommending BNM_GA()
- StrLearningPBIL_BNM() now shows deprecation warning, recommending BNM_PBIL()
- StrLearningPBIL_LDLRA() now shows deprecation warning, recommending LDLRA_PBIL()
- Old function names still work for backward compatibility but display warnings
exametrika 1.6.5
CRAN release: 2025-11-06
- Critical bugfix for LCA() response type validation
- Fixed incorrect variable reference in response type checking
- Added beta1 and beta2 parameters to all Beta distribution-based functions
- LRA.binary(): beta1=1, beta2=1 (GTM method)
- LCA(): beta1=1, beta2=1
- Biclustering.binary(): beta1=1, beta2=1
- BNM(): beta1=1, beta2=1
- LDB(): beta1=1, beta2=1
- LDLRA(): beta1=2, beta2=2
- LD_param_est(): beta1=2, beta2=2 (internal helper function)
- LDLRA_PBIL(): beta1=2, beta2=2
- These parameters control the prior density parameters in Bayesian parameter estimation
- Users can now customize Beta distribution parameters for EM algorithm parameter updating
- Default values preserve backward compatibility with previous versions
- Added alpha parameter to polytomous models for Dirichlet prior control
- Biclustering.ordinal(): alpha=1 (flat Dirichlet prior)
- Biclustering.nominal(): alpha=1 (flat Dirichlet prior)
- These parameters control the concentration parameter for Dirichlet priors in category probability estimation
- Users can customize Dirichlet parameters to adjust prior strength (alpha > 0)
- Default values (alpha=1) preserve backward compatibility with previous versions
- Simplified function names for structure learning functions
- StrLearningGA_BNM() renamed to BNM_GA()
- StrLearningPBIL_BNM() renamed to BNM_PBIL()
- StrLearningPBIL_LDLRA() renamed to LDLRA_PBIL()
- Shorter, more intuitive function names for improved usability
- All documentation and examples updated accordingly
exametrika 1.6.4
- Critical bugfix for Biclustering() field initialization
- Fixed subscript out of bounds error when nfld values cause ceiling() to exceed nfld
- Added pmin() constraint to ensure fld0 values never exceed nfld parameter
- Resolves crashes with specific nfld/testlength combinations (e.g., nfld=15, testlength=21)
- Enhanced GridSearch() fit index optimization logic
- Added support for all fit indices returned by TestFitIndices()
- Correctly handles minimization indices: model_log_like, model_Chi_sq, RMSEA, AIC, CAIC, BIC
- Correctly handles maximization indices: NFI, RFI, IFI, TLI, CFI
- Added validation to prevent unknown index specification
exametrika 1.6.3
CRAN release: 2025-09-30
- Major performance enhancement for GRM (Graded Response Model)
- Replaced R implementation with high-performance C++ code using Rcpp
- Implemented analytical gradient computation for significant speed improvements
- Achieved 5-6x faster convergence compared to numerical differentiation
- Maintains identical mathematical accuracy to previous implementation
- Full compatibility with existing GRM() function interface
- Added
convergevariable to all EM-based functions to indicate algorithm convergence status- Functions affected: Biclustering(), LCA(), LRA(), and related methods
- Returns TRUE if converged within maxiter iterations, FALSE otherwise
- Displays convergence warning messages when maxiter is reached
- Enhanced GridSearch() function with convergence handling
- Automatically excludes non-converged results from optimization
- Displays warning messages for parameter combinations that failed to converge
- Returns list of failed settings in output
- Terminates with error message if all parameter combinations fail to converge
- Improved numerical stability in Biclustering()
- Implemented conditional pmax() application to avoid unnecessary log-likelihood inflation
- Applied numerical correction only when NaN/Inf values are detected
- High-performance polychoric correlation computation
- Implemented C++ acceleration for polychoric correlation calculations
- Achieved significant speed improvements over R-based implementation
- Improved Array-type plot visualization with enhanced color palette
- Replaced dull default colors with vibrant, high-contrast color palette
- Added colorblind-friendly color scheme for better accessibility
- Binary data (2 categories) now uses black and white for optimal contrast
- Multi-category data uses enhanced colorblind-accessible palette
exametrika 1.6.1 on Aug 26, 2025
CRAN release: 2025-08-27
- Biclustering: Fixed improper handling of missing values
exametrika 1.6.0 on Aug 12, 2025
CRAN release: 2025-08-19
- Biculustring.norminal is available!
- Biclustering.ordinal is available!
- New function GridSerch() for grid search optimization of model parameters
- Bugfix: Fix output typos(class/rank)
- Added duplicate ID validation to dataFormat()
- Bugfix: Fix ID column detection in dataFormat()
- Bugfix: Fix stanine division error when unable to split data
exametrika 1.4.4 on March 3, 2025
- In Exametrika 1.4.1, bug fixes were made.
- In 1.4.2, it became possible to calculate polychoric correlation and polyserial correlation.
- In 1.4.3, item analysis for polytomous items became available.
- In 1.4.4, we renamed “ICC” to “IRF,” although they refer to the same concept (Item Characteristic Curves and Item Response Functions are interchangeable terms). The function will interpret “ICC” input as “IRF” automatically. Additionally, Test Response Function (TRF) output was also made available.
exametrika 1.3.0 on Feb 11, 2025
Added implementation of latent rank model for ordinal scale data
-
New function LRA() now supports ordinal response data
- Added visualization methods for ordinal scale analysis:
- Score frequency with rank thresholds (ScoreFreq)
- Score-rank probability heatmap (ScoreRank)
- Item category boundary reference (ICBR)
- Item category response profile (ICRP)
- Added visualization methods for ordinal scale analysis:
Bug fixes and improvements
Standardized terminology: unified the usage of “class” and “rank” throughout the package
Various minor bug fixes
Exametrika 1.2.0 on Jan 30, 2025.
CRAN release: 2025-01-31
- Improved numerical stability for model estimation
- Bug fixes for log-likelihood calculation
Exametrika 1.1.0 on Oct 30, 2024.
CRAN release: 2024-11-22
- Added support for polytomous response data
Exametrika 1.0.2 on Aug 17, 2024.
- Bug fix for Issue #12
Exametrika 1.0.1 on July 31, 2024.
- Bug fix for Item Total Correlation
- Bug fix for Fit indices
- New function called ItemStatistics
Exametrika 0.9.0 on October 17, 2023.
- Added Structure Learning for LDLRA using PBIL
- Added LDLRA model
