R/pmle_data_proc.R

Defines functions pmle_data_proc

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

###############################################################
# pmle data processing
pmle_data_proc <- function( pars, pars_lower, pars_upper ){
    NP <- length(pars)
    if ( is.null( pars_lower) ){
        pars_lower <- rep( - Inf, NP )
    }
    if ( is.null( pars_upper) ){
        pars_upper <- rep(  Inf, NP )
    }
    res <- list( pars_lower=pars_lower,
                pars_upper=pars_upper )
    return(res)
}

Try the LAM package in your browser

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

LAM documentation built on May 18, 2022, 5:17 p.m.