Running examples in ‘AER-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: GSOEP9402
> ### Title: German Socio-Economic Panel 1994-2002
> ### Aliases: GSOEP9402
> ### Keywords: datasets
> 
> ### ** Examples
> 
> ## data
> data("GSOEP9402", package = "AER")
> 
> ## some convenience data transformations
> gsoep <- GSOEP9402
> gsoep$year2 <- factor(gsoep$year)
> 
> ## visualization
> plot(school ~ meducation, data = gsoep, breaks = c(7, 9, 10.5, 11.5, 12.5, 15, 18))
> 
> 
> ## Chapter 5, Table 5.1
> library("nnet")
> gsoep_mnl <- multinom(
+   school ~ meducation + memployment + log(income) + log(size) + parity + year2,
+   data = gsoep)
# weights:  48 (30 variable)
initial  value 741.563295 
iter  10 value 655.748279
iter  20 value 624.992858
iter  30 value 618.605354
final  value 618.475696 
converged
> coeftest(gsoep_mnl)[c(1:6, 1:6 + 14),]
                                  Estimate Std. Error    z value     Pr(>|z|)
Realschule:(Intercept)          -6.3864877 2.36903996 -2.6958126 7.021716e-03
Realschule:meducation            0.3004843 0.07910641  3.7984819 1.455851e-04
Realschule:memploymentparttime   0.4933680 0.32189721  1.5326879 1.253528e-01
Realschule:memploymentnone       0.7526399 0.32884476  2.2887392 2.209451e-02
Realschule:log(income)           0.3934871 0.22539836  1.7457408 8.085601e-02
Realschule:log(size)            -1.1921790 0.44641156 -2.6705827 7.571972e-03
Realschule:year22002             0.1922413 0.45158350  0.4257049 6.703229e-01
Gymnasium:(Intercept)          -23.6975758 3.01022807 -7.8723523 3.480345e-15
Gymnasium:meducation             0.6597649 0.08144034  8.1012060 5.441700e-16
Gymnasium:memploymentparttime    0.9372429 0.34536421  2.7137813 6.652007e-03
Gymnasium:memploymentnone        1.1007579 0.35842760  3.0710746 2.132898e-03
Gymnasium:log(income)            1.6676745 0.28408439  5.8703492 4.348783e-09
>  
> ## alternatively
> if(require("mlogit")) {
+ gsoep_mnl2 <- mlogit(
+   school ~ 0 | meducation + memployment + log(income) + log(size) + parity + year2,
+   data = gsoep, shape = "wide", reflevel = "Hauptschule")
+ coeftest(gsoep_mnl2)[1:12,]
+ }
Loading required package: mlogit
Loading required package: Formula
Loading required package: maxLik
Loading required package: miscTools

Please cite the 'maxLik' package as:
Henningsen, Arne and Toomet, Ott (2011). maxLik: A package for maximum likelihood estimation in R. Computational Statistics 26(3), 443-458. DOI 10.1007/s00180-010-0217-1.

If you have questions, suggestions, or comments regarding the 'maxLik' package, please use a forum or 'tracker' at maxLik's R-Forge site:
https://r-forge.r-project.org/projects/maxlik/
                                  Estimate Std. Error   t value     Pr(>|t|)
Gymnasium:(intercept)          -23.6982768 3.01026604 -7.872486 1.475202e-14
Realschule:(intercept)          -6.3865987 2.36904833 -2.695850 7.204061e-03
Gymnasium:meducation             0.6597829 0.08144157  8.101304 2.726719e-15
Realschule:meducation            0.3004923 0.07910725  3.798543 1.593085e-04
Gymnasium:memploymentparttime    0.9372401 0.34536576  2.713761 6.830145e-03
Realschule:memploymentparttime   0.4933644 0.32189760  1.532675 1.258463e-01
Gymnasium:memploymentnone        1.1007670 0.35842942  3.071084 2.222541e-03
Realschule:memploymentnone       0.7526490 0.32884523  2.288764 2.241551e-02
Gymnasium:log(income)            1.6677258 0.28408738  5.870468 6.954975e-09
Realschule:log(income)           0.3934899 0.22539876  1.745750 8.133056e-02
Gymnasium:log(size)             -1.5459256 0.48775919 -3.169444 1.599570e-03
Realschule:log(size)            -1.1921835 0.44641174 -2.670592 7.762668e-03
> 
> ## Table 5.2
> library("effects")
Error in library("effects") : there is no package called ‘effects’
Execution halted