CRAN Package Check Results for Package LOGIT

Last updated on 2018-05-23 20:48:36 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-release-osx-x86_64 1.3 ERROR
r-oldrel-osx-x86_64 1.3 OK

Check Details

Version: 1.3
Check: examples
Result: ERROR
    Running examples in ‘LOGIT-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: confusion_stat
    > ### Title: Display confusion or classification matrix following logistic
    > ### regression using glm with binomial family.
    > ### Aliases: confusion_stat
    > ### Keywords: models
    >
    > ### ** Examples
    >
    > library(MASS)
    > library(LOGIT)
    > data(R84)
    > R84$cage <- R84$age - mean(R84$age)
    > R84$cdoc <- R84$docvis - mean(R84$docvis)
    > mylogit <- glm(outwork ~ cdoc + female + kids + cage + factor(edlevel),
    + family=binomial, data=R84)
    > mu <- predict(mylogit, type="response")
    > cutpoint<-ROCtest(mylogit, fold=10, type="Sensitivity")$cut
    > mu[mu>=cutpoint]<-1
    > mu[mu<cutpoint]<-0
    > confusion_stat(mu, R84$outwork)
    Error: `data` and `reference` should be factors with the same levels.
    Execution halted
Flavor: r-release-osx-x86_64