R/frm_fb_initial_parameters_se_sd_proposal.R

Defines functions frm_fb_initial_parameters_se_sd_proposal

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


frm_fb_initial_parameters_se_sd_proposal <- function(mod)
{
    if ( "hessian" %in% names(mod) ){
        hess_diag <- abs( diag( mod$hessian ) )
        M <- 10000 # maximum value
        hess_diag[ hess_diag > M ] <- M
        se_mod <- sqrt( 1 / hess_diag )
    } else {
        se_mod <- mdmb_vcov2se(vcov=vcov(mod))
    }
    return(se_mod)
}

Try the mdmb package in your browser

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

mdmb documentation built on March 7, 2023, 6:58 p.m.