R/mnlfa_differences_derivative.R

Defines functions mnlfa_differences_derivative

## File Name: mnlfa_differences_derivative.R
## File Version: 0.021

mnlfa_differences_derivative <- function(ll0, ll1, ll2, h)
{
    D1 <- (ll1 - ll2 ) / (2*h)
    D2 <- (ll1 - 2*ll0 + ll2 ) / h^2
    D2_max <- mnlfa_D2max(D2=D2)
    #-- output
    res <- list(D1=D1, D2=D2, D2_max=D2_max)
    return(res)
}
alexanderrobitzsch/mnlfa documentation built on July 5, 2025, 2:19 a.m.