R/MHprop_refresh_parstype.R

Defines functions MHprop_refresh_parstype

## File Name: MHprop_refresh_parstype.R
## File Version: 0.07

MHprop_refresh_parstype <- function( accept, SD, MHprop, SDchange )
{
    #--- vector
    if ( is.vector(accept) ){
        SD <- MHprop_refresh_pars( acc=accept, SD.pp=SD, MHprop=MHprop, SDchange=SDchange )
    }
    #--- matrix
    if ( is.matrix(accept) ){
        NP <- ncol(accept)
        for (pp in 1:NP){
            SD[,pp] <- MHprop_refresh_pars( acc=accept[,pp], SD.pp=SD[,pp],
                            MHprop=MHprop,    SDchange=SDchange)
        }
    }
    #--- output
    return(SD)
}

Try the immer package in your browser

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

immer documentation built on Aug. 22, 2022, 5:05 p.m.