Tests whether an object satisfies the likelihood_model concept by checking if "likelihood_model" is in its class hierarchy. To be a likelihood model, at a minimum the object must implement loglik(). For optimal results, it may also provide score() and hess_loglik().

is_likelihood_model(x)

Arguments

x

An object to test

Value

Logical indicating whether x is a likelihood model