R/gdina_proc_spec_rrum.R

Defines functions gdina_proc_spec_rrum

## File Name: gdina_proc_spec_rrum.R
## File Version: 0.12

gdina_proc_spec_rrum <- function(rule, method, linkfct, optimizer="CDM")
{
    # estimation of a reduced RUM model
    rrum.params <- FALSE
    rrum.model <- FALSE

    if ( any( rule=="RRUM" ) ){
        rule <- "ACDM"
        linkfct <- "log"
        if ( is.null(method) ){
            method <- "ML"
        }
        rrum.model <- TRUE
        optimizer <- "optim"
    } else {
        if ( is.null(method) ){
            method <- "WLS"
        }
    }
    #---- OUTPUT
    res <- list( rrum.params=rrum.params, rrum.model=rrum.model, method=method,
                    linkfct=linkfct, rule=rule, optimizer=optimizer)
    return(res)
}

Try the CDM package in your browser

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

CDM documentation built on Aug. 25, 2022, 5:08 p.m.