R/mgsem_proc_model_extract_dimension.R

Defines functions mgsem_proc_model_extract_dimension

## File Name: mgsem_proc_model_extract_dimension.R
## File Version: 0.09


mgsem_proc_model_extract_dimension <- function(model, entry="est", type, nrow=TRUE)
{
    G <- length(model)
    gg <- 1
    while (gg<=G){
        mat <- model[[gg]][[entry]][[type]]
        if (!is.null(mat)){
            val <- ifelse(nrow, nrow(mat), ncol(mat) )
            gg <- G+1
        }
        gg <- gg + 1
    }
    return(val)
}
alexanderrobitzsch/sirt documentation built on Sept. 8, 2024, 2:45 a.m.