R/noharm_sirt_create_parameter_matrices.R

Defines functions noharm_sirt_create_parameter_matrices

## File Name: noharm_sirt_create_parameter_matrices.R
## File Version: 0.041

noharm_sirt_create_parameter_matrices <- function(mat_label, parm_table, parm_index)
{
    nrow <- parm_index[[mat_label]]$nrow
    ncol <- parm_index[[mat_label]]$ncol
    mat <- matrix(0, nrow=nrow, ncol=ncol)
    x1 <- parm_table[ parm_index[[mat_label]]$row_parm_table, 'est']
    mat[ as.matrix(parm_index[[mat_label]]$entries) ] <- x1
    return(mat)
}

Try the sirt package in your browser

Any scripts or data that you put into this service are public.

sirt documentation built on Aug. 11, 2023, 5:07 p.m.