This function calculates the log-likelihood value for an agent error model (belongs to the general class of quantal response models) with correlated errors. The underlying formal structure is
1
/\
/ \
/ \ 2
u11 /\
/ \
/ \
0 u14
0 u24
and shows a game where there are two players which move sequentially. Player 1 decides to move left or right and if she does move right player 2 gets to move. The final outcome in this case depends on the move of player 2.
logLikStratSel(x11, x14, x24, y, beta)
Returns a numeric value for the log-likelihood function evaluated for \(\beta\).
A vector or a matrix containing the explanatory variables used to parametrize u11
.
A vector or a matrix containing the explanatory variables used to parametrize u14
.
A vector or a matrix containing the explanatory variables used to parametrize u24
.
Vector. Outcome variable which can take values 1, 3, and 4 depending on which outcome occurred.
Vector. Coefficients of the model whereas the last element is the correlation coefficient \(\rho\). Note, that this parameter has been re-paramterized (see details).
Lucas Leemann lleemann@gmail.com
This function provides the likelihood of an agent error model (Signorino, 2003) but in addition allows the random components to be correlated and hence can take selection into account. The correlation parameter is re-paramaterized (see Note). Further, as with probit and logit models, one needs to assume an error variance to achieve identification, here 1 is chosen as with a regular probit model. Finally, u13
and u23
are set to 0 to achieve identification.
Lucas Leemann. 2014. "Strategy and Sample Selection - A Strategic Selection Estimator", Political Analysis 22: 374-397.
StratSel