loglik_lgiv: Lognormal IV likelihood

Description Usage Arguments Value

View source: R/loglik_lgiv.R

Description

Returns the likelihood for a lognormal IV. Requires certain parameters to be attached/in the environment. Can't figure out how to just pass them to the function without the function later trying to optimize for them. This should essentially always be used in a wrapper for that reason.

Usage

1

Arguments

t

a vector of parameters to be maximized. Order should be: covariance matrix elements (leaving out leading 1), then betas, then gammas, then pis.

Value

returns the loglikelihood of the given parameter vector for the dataset.


jackiemauro/hurdleIV documentation built on May 18, 2019, 7:56 a.m.