Learn R Programming

scorematchingad (version 0.0.67)

evalll: Evaluate a custom log-likelihood function

Description

Evaluates a custom log-likelihood function from customll() without taping. This is useful to check that the custom log-likelihood is behaving. To check a tape of the custom log-likelihood use buildsmdtape() then evaltape().

Usage

evalll(ll, u, theta)

Value

The value of the log-likelihood at u with parameters theta.

Arguments

ll

A compiled log-likelihood function created by customll().

u

A vector of measurements for an individual

theta

A vector of parameters