R/mlnormal_proc_variance_shortcut_XY_R.R

Defines functions mlnormal_proc_variance_shortcut_XY_R

## File Name: mlnormal_proc_variance_shortcut_XY_R.R
## File Version: 0.093


mlnormal_proc_variance_shortcut_XY_R <- function(y, X, G, freq_id)
{
    y0 <- y
    X0 <- X
    index_orig <- unlist( sapply( 1L:G, FUN=function(gg){
                        freq_id[gg, 'start_orig']:freq_id[gg, 'end_orig'] } ) )
    X <- X0[ index_orig, ]
    y <- y0[ index_orig ]
    res <- list( y=y, X=X)
    return(res)
}

Try the LAM package in your browser

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

LAM documentation built on Sept. 11, 2024, 9:16 p.m.