• using R version 2.13.0 Under development (unstable) (2011-03-07 r54691)
  • using platform: i386-apple-darwin9.8.0 (32-bit)
  • using session charset: ASCII
  • checking for file 'AER/DESCRIPTION' ... OK
  • this is package 'AER' version '1.1-7'
  • checking package name space information ... OK
  • checking package dependencies ... NOTE
    Package suggested but not available for checking: mlogit
  • checking if this is a source package ... OK
  • checking for executable files ... OK
  • checking whether package 'AER' can be installed ... OK
  • checking installed package size ... OK
  • checking package directory ... OK
  • checking for portable file names ... OK
  • checking for sufficient/correct file permissions ... OK
  • checking DESCRIPTION meta-information ... OK
  • checking top-level files ... OK
  • checking index information ... OK
  • checking package subdirectories ... OK
  • checking R files for non-ASCII characters ... OK
  • checking R files for syntax errors ... OK
  • checking whether the package can be loaded ... OK
  • checking whether the package can be loaded with stated dependencies ... OK
  • checking whether the package can be unloaded cleanly ... OK
  • checking whether the name space can be loaded with stated dependencies ... OK
  • checking whether the name space can be unloaded cleanly ... OK
  • checking for unstated dependencies in R code ... OK
  • checking S3 generic/method consistency ... OK
  • checking replacement functions ... OK
  • checking foreign function calls ... OK
  • checking R code for possible problems ... OK
  • checking Rd files ... OK
  • checking Rd metadata ... OK
  • checking Rd cross-references ... OK
  • checking for missing documentation entries ... OK
  • checking for code/documentation mismatches ... OK
  • checking Rd \usage sections ... OK
  • checking Rd contents ... OK
  • checking for unstated dependencies in examples ... OK
  • checking contents of 'data' directory ... OK
  • checking data for non-ASCII characters ... OK
  • checking data for ASCII and uncompressed saves ... OK
  • checking sizes of PDF files under inst/doc ... OK
  • checking examples ... ERROR
    Running examples in 'AER-Ex.R' failed
    The error most likely occurred in:

    > ### Name: BankWages
    > ### Title: Bank Wages
    > ### Aliases: BankWages
    > ### Keywords: datasets
    >
    > ### ** Examples
    >
    > data("BankWages")
    >
    > ## exploratory analysis of job ~ education
    > ## (tables and spine plots, some education levels merged)
    > xtabs(~ education + job, data = BankWages)
    job
    education custodial admin manage
    8 13 40 0
    12 13 176 1
    14 0 6 0
    15 1 111 4
    16 0 24 35
    17 0 3 8
    18 0 2 7
    19 0 1 26
    20 0 0 2
    21 0 0 1
    > edcat <- factor(BankWages$education)
    > levels(edcat)[3:10] <- rep(c("14-15", "16-18", "19-21"), c(2, 3, 3))
    > tab <- xtabs(~ edcat + job, data = BankWages)
    > prop.table(tab, 1)
    job
    edcat custodial admin manage
    8 0.245283019 0.754716981 0.000000000
    12 0.068421053 0.926315789 0.005263158
    14-15 0.008196721 0.959016393 0.032786885
    16-18 0.000000000 0.367088608 0.632911392
    19-21 0.000000000 0.033333333 0.966666667
    > spineplot(tab, off = 0)
    > plot(job ~ edcat, data = BankWages, off = 0)
    >
    > ## fit multinomial model for male employees
    > library("nnet")
    > fm_mnl <- multinom(job ~ education + minority, data = BankWages,
    + subset = gender == "male", trace = FALSE)
    > summary(fm_mnl)
    Call:
    multinom(formula = job ~ education + minority, data = BankWages,
    subset = gender == "male", trace = FALSE)

    Coefficients:
    (Intercept) education minorityyes
    admin -4.760725 0.5533995 -0.4269495
    manage -30.774855 2.1867717 -2.5360409

    Std. Errors:
    (Intercept) education minorityyes
    admin 1.172774 0.09904108 0.5027084
    manage 4.478612 0.29483562 0.9342070

    Residual Deviance: 237.472
    AIC: 249.472
    > confint(fm_mnl)
    , , admin

    2.5 % 97.5 %
    (Intercept) -7.0593203 -2.4621301
    education 0.3592825 0.7475164
    minorityyes -1.4122398 0.5583409

    , , manage

    2.5 % 97.5 %
    (Intercept) -39.552774 -21.9969368
    education 1.608904 2.7646389
    minorityyes -4.367053 -0.7050288

    >
    > ## same with mlogit package
    > library("mlogit")
    Error in library("mlogit") : there is no package called 'mlogit'
    Execution halted
  • elapsed time (check, wall clock): 0:55