R/starts_estimate_description.R

Defines functions starts_estimate_description

## File Name: starts_estimate_description.R
## File Version: 0.04

starts_estimate_description <- function(estimator)
{
    if (estimator=="PML"){
        description <- paste0( "Penalized Maximum Likelihood Estimation \n ",
                "   (Maximum Posterior Estimation, MAP)" )
    }
    if (estimator=="ML"){
        description <- paste0( "Maximum Likelihood Estimation" )
    }
    if (estimator=="MCMC"){
        description <- paste0( "Markov Chain Monte Carlo Estimation" )
    }
    if (estimator %in% c("ML","PML")){
        used_function <- "LAM::pmle"
    }
    if (estimator %in% c("MCMC")){
        used_function <- "LAM::amh"
    }

    #--- output
    res <- list(description=description, used_function=used_function)
    return(res)
}

Try the STARTS package in your browser

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

STARTS documentation built on May 20, 2022, 1:08 a.m.