Runs MCMC to estimate parameters of any of the listed learning models.
hmcdm(
Response,
Q_matrix,
model,
Design_array = NULL,
Test_order = NULL,
Test_versions = NULL,
chain_length = 100L,
burn_in = 50L,
G_version = NA_integer_,
theta_propose = 0,
Latency_array = NULL,
deltas_propose = NULL,
R = NULL
)
An array
of dichotomous item responses. t-th slice is an N-by-J matrix of responses at time t.
A J-by-K Q-matrix.
A charactor
of the type of model fitted with the MCMC sampler, possible selections are
"DINA_HO": Higher-Order Hidden Markov Diagnostic Classification Model with DINA responses;
"DINA_HO_RT_joint": Higher-Order Hidden Markov DCM with DINA responses, log-Normal response times, and joint modeling of latent
speed and learning ability;
"DINA_HO_RT_sep": Higher-Order Hidden Markov DCM with DINA responses, log-Normal response times, and separate modeling of latent
speed and learning ability;
"rRUM_indept": Simple independent transition probability model with rRUM responses
"NIDA_indept": Simple independent transition probability model with NIDA responses
"DINA_FOHM": First Order Hidden Markov model with DINA responses
An array
of dimension N-by-J-by-L indicating the items assigned (1/0) to each subject at each time point.
Either 'Design_array' or both 'Test_order' & 'Test_versions' need to be provided to run HMCDM.
Optional. A matrix
of the order of item blocks for each test version.
Optional. A vector
of the test version of each learner.
An int
of the MCMC chain length.
An int
of the MCMC burn-in chain length.
Optional. An int
of the type of covariate for increased fluency (1: G is dichotomous depending on whether all skills required for
current item are mastered; 2: G cumulates practice effect on previous items using mastered skills; 3: G is a time block effect invariant across
subjects with different attribute trajectories)
Optional. A scalar
for the standard deviation of theta's proposal distribution in the MH sampling step.
Optional. A array
of the response times. t-th slice is an N-by-J matrix of response times at time t.
Optional. A vector
for the band widths of each lambda's proposal distribution in the MH sampling step.
Optional. A reachability matrix
for the hierarchical relationship between attributes.
A list
of parameter samples and Metropolis-Hastings acceptance rates (if applicable).
# \donttest{
output_FOHM = hmcdm(Y_real_array, Q_matrix, "DINA_FOHM", Design_array, 100, 30)
#> 0
# }