R/create.modMatrix.R

Defines functions create.modMatrix

Documented in create.modMatrix

create.modMatrix <- function(RAM, output=c("A", "S"), mod) {
    output <- match.arg(output)

    switch(output,
        A = { out <- RAM$A
        out[grep("\\*", out)] <- paste0("0*data.", mod)},
        S = { out <- RAM$S
        out[grep("\\*", out)] <- paste0("0*data.", mod)
        Diag(out) <- "0"})

    out
}

Try the metaSEM package in your browser

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

metaSEM documentation built on Aug. 10, 2023, 1:09 a.m.