| Biclustering_IRM | R Documentation |
This function performs Biclustering structure learning using the Infinite Relational Model (IRM) to automatically determine the optimal number of classes C and optimal number of fields F. It dispatches to the appropriate method based on the data type: binary, ordinal, or nominal. For binary data, see Section 7.8 in Shojima(2022). For nominal data, a Dirichlet-Multinomial collapsed Gibbs sampler is used.
Biclustering_IRM(U, ...)
## Default S3 method:
Biclustering_IRM(U, na = NULL, Z = NULL, w = NULL, ...)
## S3 method for class 'binary'
Biclustering_IRM(
U,
na = NULL,
Z = NULL,
w = NULL,
gamma_c = 1,
gamma_f = 1,
maxiter = 100,
stable_limit = 5,
minSize = 20,
EM_limit = 20,
seed = 123,
verbose = FALSE,
...
)
## S3 method for class 'nominal'
Biclustering_IRM(
U,
gamma_c = 1,
gamma_f = 1,
alpha = 1,
maxiter = 100,
stable_limit = 5,
minSize = 20,
EM_limit = 20,
seed = 123,
verbose = FALSE,
...
)
## S3 method for class 'ordinal'
Biclustering_IRM(
U,
gamma_c = 1,
gamma_f = 1,
alpha = 1,
mic = FALSE,
maxiter = 100,
stable_limit = 5,
minSize = 20,
EM_limit = 20,
seed = 123,
verbose = FALSE,
...
)
## S3 method for class 'rated'
Biclustering_IRM(
U,
gamma_c = 1,
gamma_f = 1,
alpha = 1,
maxiter = 100,
stable_limit = 5,
minSize = 20,
EM_limit = 20,
seed = 123,
verbose = FALSE,
...
)
U |
U is either a data class of exametrika, or raw data. When raw data is given, it is converted to the exametrika class with the dataFormat function. |
... |
Additional arguments passed to specific methods. |
na |
na argument specifies the numbers or characters to be treated as missing values. |
Z |
Z is a missing indicator matrix of the type matrix or data.frame |
w |
w is item weight vector |
gamma_c |
|
gamma_f |
|
maxiter |
A maximum iteration number of IRM process. The default is 100.
(Renamed from |
stable_limit |
The IRM process exits the loop when the FRM stabilizes and no longer changes significantly. This option sets the maximum number of stable iterations, with a default of 5. |
minSize |
A value used for readjusting the number of classes.If the size of each
class is less than |
EM_limit |
After IRM process, resizing the number of classes process will starts.
This process using EM algorithm, |
seed |
Random seed for reproducibility. When a numeric value is provided,
|
verbose |
verbose output Flag. default is FALSE |
alpha |
Dirichlet distribution concentration parameter for the prior density of field reference probabilities (rated/nominal IRM). Must be positive. The default is 1. |
mic |
Logical; if TRUE, relabels the classes in ascending order of their
total expected score, summed over all fields (ordinal IRM only). Default is
FALSE. Note that this is a cosmetic reordering of class labels: it makes the
Test Reference Profile monotone (WOAC) but does not impose the per-field
stochastic order (SOAC), and it leaves the estimates themselves unchanged.
IRM classes come from a CRP prior and are exchangeable, so there is no rank
axis for an order restriction to act on; use ordinal Ranklustering
( |
An object of class "exametrika" containing the IRM results.
See Biclustering_IRM.binary or Biclustering_IRM.nominal for details.
Sample size. The number of rows in the dataset.
A character string indicating the model type.
Length of the test. The number of items included in the test.
Optimal number of classes (new naming convention).
Optimal number of fields (new naming convention).
Number of EM algorithm iterations (new naming convention).
Optimal number of classes.
Optimal number of fields.
Number of EM algorithm iterations (deprecated, use em_cycle).
Bicluster Reference Matrix
Field Reference Profile
Index of FFP includes the item location parameters B and Beta, the slope parameters A and Alpha, and the monotonicity indices C and Gamma.
Test Reference Profile
Field Membership Profile
Rank Membership Profile matrix.The s-th row vector of \hat{M}_R, \hat{m}_R, is the
rank membership profile of Student s, namely the posterior probability distribution representing the student's
belonging to the respective latent classes. It also includes the rank with the maximum estimated membership probability,
as well as the rank-up odds and rank-down odds.
Latent Rank Distribution. see also plot.exametrika
Latent Field Distribution. see also plot.exametrika
Rank Membership Distribution.
Overall fit index for the test.See also TestFit
For nominal data, the returned list includes:
Response matrix.
Missing indicator matrix.
Number of items.
Sample size.
Optimal number of classes.
Optimal number of fields.
Number of EM algorithm iterations.
Field Reference Profile, a 3D array (nfld x ncls x maxQ).
Latent Field Distribution.
Latent Class Distribution.
Field membership probability matrix.
Class membership probability matrix.
Estimated field assignment for each item.
Estimated class assignment for each student.
Rank Membership Profile matrix with estimated class.
Overall fit index for the test.
Log-likelihood of the model.
For ordinal data, the returned list includes:
Response matrix.
Missing indicator matrix.
Number of items.
Sample size.
Optimal number of classes.
Optimal number of fields.
Number of EM algorithm iterations.
Field Reference Profile (BCRM), a 3D array (nfld x ncls x maxQ).
Index of FRP includes the item location parameters B and Beta, the slope parameters A and Alpha, and the monotonicity indices C and Gamma.
Test Reference Profile.
Bicluster Field Reference Profile (expected scores), a list with Weighted and Observed components.
Latent Field Distribution.
Latent Class Distribution.
Field membership probability matrix.
Class membership probability matrix.
Estimated field assignment for each item.
Estimated class assignment for each student.
Rank Membership Profile matrix with estimated class.
Overall fit index for the test.
Log-likelihood of the model.
Logical; TRUE if Strongly Ordinal Alignment Condition is satisfied.
Logical; TRUE if Weakly Ordinal Alignment Condition is satisfied.
For rated data, the returned list includes:
Response matrix.
Binary correct/incorrect matrix.
Missing indicator matrix.
Number of items.
Sample size.
Optimal number of classes.
Optimal number of fields.
Number of EM algorithm iterations.
Field Reference Profile (BCRM), a 3D array (nfld x ncls x maxQ).
Field Reference Profile based on binary correct rates (nfld x ncls).
Item-level correct response rate per class (nitems x ncls).
Index of FRP includes the item location parameters B and Beta, the slope parameters A and Alpha, and the monotonicity indices C and Gamma.
Test Reference Profile.
Latent Field Distribution.
Latent Class Distribution.
Field membership probability matrix.
Class membership probability matrix.
Estimated field assignment for each item.
Estimated class assignment for each student.
Rank Membership Profile matrix with estimated class.
Field analysis with CRR and field memberships.
Overall fit index for the test (binary layer, default).
Fit indices for the nominal layer (AIC/BIC/CAIC only).
Log-likelihood of the binary layer model.
Log-likelihood of the nominal layer model.
Logical; TRUE if Strongly Ordinal Alignment Condition is satisfied.
Logical; TRUE if Weakly Ordinal Alignment Condition is satisfied.
# Fit a Biclustering model with automatic structure learning using IRM
# gamma_c and gamma_f are concentration parameters for the Chinese Restaurant Process
result <- Biclustering_IRM(J15S500, gamma_c = 1, gamma_f = 1)
# Display the Bicluster Reference Matrix (BRM) as a heatmap
plot(result, type = "Array")
# Plot Field Reference Profiles (FRP) in a 3-column grid
plot(result, type = "FRP", nc = 3)
result <- Biclustering_IRM(J15S500, gamma_c = 1, gamma_f = 1)
plot(result, type = "Array")
# Fit a nominal Biclustering IRM model
result <- Biclustering_IRM(J20S600, gamma_c = 1, gamma_f = 1, verbose = TRUE)
plot(result, type = "Array")
# Fit an ordinal Biclustering IRM model
result <- Biclustering_IRM(J35S500, gamma_c = 1, gamma_f = 1, verbose = TRUE)
plot(result, type = "Array")
# Fit a rated Biclustering IRM model
result <- Biclustering_IRM(J21S300, gamma_c = 1, gamma_f = 1, verbose = TRUE)
plot(result, type = "Array")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.