Use the following code to install the package from CRAN: install.packages("cprobit") Or install the same version from GitHub: # Package `devtools` required devtools::install_github("nyilin/cprobit")