R/oprobit_regression.R

Defines functions oprobit_regression

Documented in oprobit_regression

## File Name: oprobit_regression.R
## File Version: 0.15


oprobit_regression <- function( formula, data, weights=NULL,
    beta_init=NULL, use_grad=2, h=1E-5, optimizer="optim",
    maxiter=300, control=NULL, control_optim_fct=NULL )
{
    CALL <- match.call()
    type <- "oprobit"
    #--- wrapping general regression function
    res <- mdmb_regression( formula=formula, data=data, type=type,
                weights=weights, beta_init=beta_init, use_grad=use_grad, h=h,
                optimizer=optimizer, maxiter=maxiter, control=control,
                control_optim_fct=control_optim_fct )
    res$CALL <- CALL
    #--- additional informations about model type
    class(res) <- "oprobit_regression"
    return(res)
}

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.