get_EM: function to actually perform EM for DINA (fixed A)

Description Usage Arguments Value

View source: R/estimate.R

Description

This is primarily for plugging in final A (e.g., from PEM) and redo EM to calculate log lik for EBIC calculations. Response probabilities estimated within the algorithm with A and Q fixed.

Usage

1
get_EM(X, Q, A, err_prob, c = NULL, g = NULL, model = "DINA")

Arguments

X

N by J data matrix

Q

J by K structural matrix

A

K-column latent attribute matrix

err_prob

error probability; for initializing c g

c, g

default to NULL, but can use values obtained from PEM.

model

"DINA" (default) or "DINO"

Value


zhenkewu/slamR documentation built on March 8, 2020, 1:31 a.m.