logLikStratSel: Log-Likelihood Function of an Agent Error Model with...

Description Usage Arguments Details Value Note Author(s) References See Also

Description

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
3
4
5
6
7
8
9
       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.

Usage

1
logLikStratSel(x11, x14, x24, y, beta)

Arguments

x11

A vector or a matrix containing the explanatory variables used to parametrize u11.

x14

A vector or a matrix containing the explanatory variables used to parametrize u14.

x24

A vector or a matrix containing the explanatory variables used to parametrize u24.

y

Vector. Outcome variable which can take values 1, 3, and 4 depending on which outcome occurred.

beta

Vector. Coefficients of the model whereas the last element is the correlation coefficient ρ. Note, that this parameter has been re-paramterized (see details).

Details

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.

Value

Returns a numeric value for the log-likelihood function evaluated for β.

Note

The notation \boldsymbol{Φ_2}(a;b;c) indicates a bivariate standard normal cumulative distribution evaluated at the values a,b whereas the two random variables have a correlation of c.

ll= ∑ log(Φ_2(p_i4(x_i14*β_14)-x_i11*β_11; x_i24*β_24; -ρ )^(1-I(y_1=1))(1-I(y_1=4))

+ ∑ log(Φ_2(p_i4(x_i14*β_14)-x_i11*β_11; x_i24*β_24; ρ )^(1-I(y_1=1))I(y_1=4)

∑ log(1-Φ(p_i4*x_i14*β_14 - x_i11*β_11))

whereas

p_i4 = Φ(x_24 β_24)

and

p_i1 = Φ(x_11* β_11-p_24* (x_14 * β_14))

The re-parametrization is as follows:

ρ = 2/(1-exp(-θ))- 1

Author(s)

Lucas Leemann lleemann@gmail.com

References

Lucas Leemann. 2013. "Strategy and Sample Selection - A Strategic Selection Estimator", forthcoming in Political Analysis.

See Also

StratSel


StratSel documentation built on May 2, 2019, 11:11 a.m.