R/dcmCompare.R

Defines functions dcmCompare

Documented in dcmCompare

#' @export
dcmCompare <-
function(DCM1, DCM2){

    bf<-list()
    cat('\n','AIC overall Bayes Factor','\n\n')
    nats <-  -1*(DCM1$AIC-DCM2$AIC)
    bits <- nats/log(2)
    bf_aic <- 2^(-bits)
    bf$bf_aic <- bf_aic
    cat('      BF: ',bf_aic,'\n')

    cat ('\n','BIC overall Bayes Factor','\n\n')
    nats <-  -1*(DCM1$BIC-DCM2$BIC)
    bits <- nats/log(2)
    bf_bic <- 2^(-bits)
    bf$bf_bic <- bf_bic
    cat('      BF: ',bf_bic,'\n\n')
    #bf
    }

Try the FIAR package in your browser

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

FIAR documentation built on June 5, 2018, 5:03 p.m.