ivprobit fit an Instrumental variables probit model using the generalized least squares estimator
To dwonload the package you can just type install.packages("ivprobit") in R or Rstudio.
# load the package
library(ivprobit)
The data we use in this example represents the Foreign-Exchange Derivatives Use By Large U.S. Bank Holding Companies from 1996 to 2000.
```R
data(eco) ```
The function is :
In this example we have d2 the dichotomus l.h.s vector, the r.h.s exogenous variables are (ltass,roe and div), the r.h.s. endogenous variables matrix is (eqrat,bonus) and the instrumental variables are (ltass,roe,div,gap,cfa).
```R
pro<-ivprobit(d2~ltass+roe+div|eqrat+bonus|ltass+roe+div+gap+cfa,eco) # the results summary summary(pro) ```
All code is licensed GPL-3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.