Learn R Programming

dina (version 1.0.2)

update_sg: Update item parameters

Description

Update guessing and slipping parameters from full conditional distribution.

Usage

update_sg(Y, Q, ALPHAS, ss_old, as0, bs0, ag0, bg0)

Arguments

Y

A N by J matrix of observed responses.

Q

A N by K matrix indicating which skills are required for which items.

ALPHAS

A N by K matrix of latent attributes.

ss_old

A J vector of item slipping parameters from prior iteration.

as0

Slipping prior alpha parameter for Beta distribution.

bs0

Slipping prior beta parameter for Beta distribution.

ag0

Guessing prior alpha parameter for Beta distribution.

bg0

Guessing prior beta parameter for Beta distribution.

Value

A list with two J vectors of guessing and slipping parameters.