CRAN Package Check Results for Package DOS2

Last updated on 2021-12-03 10:50:47 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.5.2 3.98 35.34 39.32 OK
r-devel-linux-x86_64-debian-gcc 0.5.2 2.75 24.79 27.54 ERROR
r-devel-linux-x86_64-fedora-clang 0.5.2 62.77 OK
r-devel-linux-x86_64-fedora-gcc 0.5.2 41.03 ERROR
r-devel-windows-x86_64-new-UL 0.5.2 10.00 72.00 82.00 OK
r-devel-windows-x86_64-new-TK 0.5.2 OK
r-devel-windows-x86_64-old 0.5.2 6.00 45.00 51.00 OK
r-patched-linux-x86_64 0.5.2 3.69 34.34 38.03 OK
r-patched-solaris-x86 0.5.2 70.40 OK
r-release-linux-x86_64 0.5.2 3.23 33.86 37.09 OK
r-release-macos-arm64 0.5.2 OK
r-release-macos-x86_64 0.5.2 OK
r-release-windows-ix86+x86_64 0.5.2 7.00 56.00 63.00 OK
r-oldrel-macos-x86_64 0.5.2 OK
r-oldrel-windows-ix86+x86_64 0.5.2 8.00 56.00 64.00 OK

Check Details

Version: 0.5.2
Check: examples
Result: ERROR
    Running examples in ‘DOS2-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: dynarski
    > ### Title: A Natural Experiment Concerning Subsidized College Education
    > ### Aliases: dynarski
    > ### Keywords: datasets
    >
    > ### ** Examples
    >
    > #
    > data(dynarski)
    > # Table 14.1 of "Design of Observational Studies" (2nd edition)
    > head(dynarski)
     id zb faminc incmiss black hisp afqtpct edmissm edm female
    1 1 0 5.3497560 0 0 0 71.90166 0 2 0
    2 2 0 2.4627060 0 0 0 95.15805 0 2 1
    3 4 0 9.4876030 0 0 0 95.78525 0 2 1
    4 5 0 0.4388592 0 0 0 90.61716 0 2 1
    5 6 0 10.4363600 0 0 0 81.76116 0 2 0
    6 7 0 6.2694180 0 0 0 97.91771 0 4 0
    > # Table 14.2 of "Design of Observational Studies" (2nd edition)
    > zb<-dynarski$zb
    > zbf<-factor(zb,levels=c(1,0),labels=c("Father deceased",
    + "Father not deceased"))
    > table(zbf)
    zbf
     Father deceased Father not deceased
     131 2689
    > Xb<-dynarski[,3:10]
    >
    > # Estimate the propensity score, Rosenbaum (2010, Section 14.3)
    > p<-glm(zb~Xb$faminc+Xb$incmiss+Xb$black+Xb$hisp
    + +Xb$afqtpct+Xb$edmissm+Xb$edm+Xb$female,
    + family=binomial)$fitted.values
    > # Figure 14.1 in "Design of Observational Studies" (2nd edition)
    > boxplot(p~zbf,ylab="Propensity score",main="1979-1981 Cohort")
    >
    > # Read about missing covariate values in section 14.4
    > # of "Design of Observational Studies" (2nd edition)
    >
    > # Robust Mahalanobis distance matrix, treated x control
    > dmat<-smahal(zb,Xb)
    Error in smahal(zb, Xb) : length(z) == (dim(X)[1]) is not TRUE
    Calls: smahal -> stopifnot
    Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.5.2
Check: examples
Result: ERROR
    Running examples in ‘DOS2-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: dynarski
    > ### Title: A Natural Experiment Concerning Subsidized College Education
    > ### Aliases: dynarski
    > ### Keywords: datasets
    >
    > ### ** Examples
    >
    > #
    > data(dynarski)
    > # Table 14.1 of "Design of Observational Studies" (2nd edition)
    > head(dynarski)
     id zb faminc incmiss black hisp afqtpct edmissm edm female
    1 1 0 5.3497560 0 0 0 71.90166 0 2 0
    2 2 0 2.4627060 0 0 0 95.15805 0 2 1
    3 4 0 9.4876030 0 0 0 95.78525 0 2 1
    4 5 0 0.4388592 0 0 0 90.61716 0 2 1
    5 6 0 10.4363600 0 0 0 81.76116 0 2 0
    6 7 0 6.2694180 0 0 0 97.91771 0 4 0
    > # Table 14.2 of "Design of Observational Studies" (2nd edition)
    > zb<-dynarski$zb
    > zbf<-factor(zb,levels=c(1,0),labels=c("Father deceased",
    + "Father not deceased"))
    > table(zbf)
    zbf
     Father deceased Father not deceased
     131 2689
    > Xb<-dynarski[,3:10]
    >
    > # Estimate the propensity score, Rosenbaum (2010, Section 14.3)
    > p<-glm(zb~Xb$faminc+Xb$incmiss+Xb$black+Xb$hisp
    + +Xb$afqtpct+Xb$edmissm+Xb$edm+Xb$female,
    + family=binomial)$fitted.values
    > # Figure 14.1 in "Design of Observational Studies" (2nd edition)
    > boxplot(p~zbf,ylab="Propensity score",main="1979-1981 Cohort")
    >
    > # Read about missing covariate values in section 14.4
    > # of "Design of Observational Studies" (2nd edition)
    >
    > # Robust Mahalanobis distance matrix, treated x control
    > dmat<-smahal(zb,Xb)
    Error in smahal(zb, Xb) : length(z) == (dim(X)[1]) is not TRUE
    Calls: smahal -> stopifnot
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc