R/SRM_COMPUTE_OPTIM_FUNCTION_GRAD.R

Defines functions SRM_COMPUTE_OPTIM_FUNCTION_GRAD

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

SRM_COMPUTE_OPTIM_FUNCTION_GRAD <- function(args_grad, method)
{
    #- ML estimation
    if (method == "ml"){
        res <- do.call(what=SRM_COMPUTE_LOG_LIKELIHOOD_GRADIENT, args=args_grad)
    }
    #- ULS estimation
    if (method == "uls"){
        res <- SRM_COMPUTE_ULS_GRADIENT(args_grad=args_grad)
    }

    return(res)
}

Try the srm package in your browser

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

srm documentation built on Nov. 3, 2022, 5:06 p.m.