ll: ll

View source: R/old/qrme-old.R View source: R/cop.R

llR Documentation

ll

Description

this is the likelihood function for estimating the copula parameter

Usage

ll(
  params,
  y,
  t,
  x,
  copula = "gumbel",
  Fyx,
  Ftx,
  fyx,
  ftx,
  Us,
  Vs,
  ndraws = 100,
  eps = 1e-300
)

Arguments

params

a value of the parameters to calculate the log likelihood for

y

should be a vector of outcomes

t

should be a vector of treatments

x

a matrix of values of x

copula

the type of copula, should be supported by cop.pdf

Fyx

function that contains the cdf of y conditional on x

Ftx

function that contains the cdf of t conditional on x

fyx

function that contains the pdf of y conditional on x

ftx

function that contains the pdf of t conditional on x

Us

draws for the measurement error in the outcome equation (these are made in the function that calls the likelihood function)

Vs

draws for the measurement error in the treatment equation (these are made in the function that calls the likelihood function)

Value

scalar negative value of log likelihood function


bcallaway11/qrme documentation built on May 16, 2024, 12:02 p.m.