llhood1 {BiProbitPartial}R Documentation

log likelihood of bivariate probit with partial observability

Description

log likelihood of bivariate probit with partial observability

Usage

llhood1(theta, X1, X2, Z, rho = 0, p = NULL, summed = T,
  fixrho = F)

Arguments

theta

numeric vector of dimension equal to that of the free parameter space

X1

numeric matrix of covariates for the first equation

X2

numeric matrix of covariates for the second equation

Z

numeric matrix or column vecotr of response observations

rho

numeric value for rho if fixed

p

numeric precomputed probabilities of Pr(Y1=1,Y2=1)

summed

logical if the log likelihood observations should be summed

fixrho

logical if rho should be fixed

Value

if summed is TRUE then the function returns the numeric sum of the likelihood vector, else it returns a numeric vector with each entry a value of the likelihood vector


[Package BiProbitPartial version 1.0.3 Index]