- using R Under development (unstable) (2012-02-27 r58511)
- using platform: x86_64-pc-mingw32 (64-bit)
- using session charset: ISO8859-1
- checking for file 'McSpatial/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'McSpatial' version '1.0'
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking whether package 'McSpatial' can be installed ... OK
- checking installed package size ... OK
- checking package directory ... OK
- checking for portable file names ... 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
- loading checks for arch 'i386'
** 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 namespace can be loaded with stated dependencies ... OK
** checking whether the namespace can be unloaded cleanly ... OK
- loading checks for arch 'x64'
** 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 namespace can be loaded with stated dependencies ... OK
** checking whether the namespace 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 examples ...
** running examples for arch 'i386' ... OK
** running examples for arch 'x64' ... ERROR
Running examples in 'McSpatial-Ex.R' failed
The error most likely occurred in:
> ### Name: misclass
> ### Title: Probit Model with Misclassification of the Dependent Variable
> ### Aliases: misclass
> ### Keywords: Misclassification Discrete Choice Models
>
> ### ** Examples
>
> set.seed(189)
> n = 1000
> x <- rnorm(n)
> x <- sort(x)
> y <- x*1 + rnorm(n, 0, sd(x)/2)
> y <- ifelse(y>0,1,0)
> e <- runif(n)
> misy <- y
> misy <- ifelse(e<.05&y==0,1,y)
> table(y,misy)
misy
y 0 1
0 454 19
1 0 527
> fit <- misclass(misy~x)
Standard Probit Estimates
Call:
glm(formula = form, family = binomial(link = "probit"), data = data)
Deviance Residuals:
Min 1Q Median 3Q Max
-2.6647 -0.5695 0.0433 0.5547 4.3061
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) 0.14669 0.05278 2.779 0.00545 **
x 1.70445 0.09840 17.322 < 2e-16 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
(Dispersion parameter for binomial family taken to be 1)
Null deviance: 1377.82 on 999 degrees of freedom
Residual deviance: 724.13 on 998 degrees of freedom
AIC: 728.13
Number of Fisher Scoring iterations: 6
Error in solve.default(nlfit$hessian) :
Lapack routine dgesv: system is exactly singular
Calls: misclass -> solve -> solve.default
Execution halted