R/frm_normalize_posterior.R

Defines functions frm_normalize_posterior

## File Name: frm_normalize_posterior.R
## File Version: 0.14

frm_normalize_posterior <- function( post, case )
{
    post1 <- post
    if ( ! is.null(case) ){
        # rs1 <- rowsum( post, case )
        # post1 <- post / rs1[ case ]
        post1 <- mdmb_rcpp_frm_normalize_posterior( post=post, case_=case )
    }
    return(post1)
}
alexanderrobitzsch/mdmb documentation built on July 18, 2024, 11:14 p.m.