R/lam_vcov_to_se.R

Defines functions lam_vcov_to_se

## File Name: lam_vcov_to_se.R
## File Version: 0.03

lam_vcov_to_se <- function(x, to_matrix=FALSE, byrow=TRUE)
{
    N <- nrow(x)
    y <- sqrt(diag(x))
    if (to_matrix){
        N1 <- sqrt(N)
        y <- matrix(y, nrow=N1, ncol=N1, byrow=byrow)
    }
    return(y)
}

Try the LAM package in your browser

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

LAM documentation built on May 18, 2022, 5:17 p.m.