llhood1: log likelihood of bivariate probit with partial observability

Description Usage Arguments Value

Description

log likelihood of bivariate probit with partial observability

Usage

1
2
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


BiProbitPartial documentation built on May 2, 2019, 1:48 p.m.