Skip to content

Error in vis(bw.glm, B = 150) : FALSE #8

Description

@jlhanson5

Hello all,

I was trying to simply run the birth weight example, but get an error.

Here's the code I ran...

library(mplot)
data("birthwt", package = "MASS")
bwt <- with(birthwt, {
  race <- factor(race, labels = c("white", "black", "other"))
  ptd <- factor(ptl > 0)
  ftv <- factor(ftv)
  levels(ftv)[-(1:2)] <- "2+"
  data.frame(low = factor(low), age, lwt, race, smoke = (smoke > 0), ptd, ht = (ht > 0), ui = (ui > 0), ftv)
})
options(contrasts = c("contr.treatment", "contr.poly"))
bw.glm <- glm(low ~ ., family = binomial, data = bwt)
round(summary(bw.glm)$coef, 2)
#
af.bw = af(bw.glm, B = 150, c.max = 20, n.c = 40)
vis.bw = vis(bw.glm, B = 150)

With that last command, I get this error/output:
Error in vis(bw.glm, B = 150) : FALSE

Have other run into this?

Here's my sessionInfo...


> sessionInfo()
R version 4.4.0 (2024-04-24)
Platform: aarch64-apple-darwin20
Running under: macOS Sonoma 14.5

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: America/New_York
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] mplot_1.0.6

loaded via a namespace (and not attached):
 [1] Matrix_1.7-0         shinydashboard_0.7.2 dplyr_1.1.4          compiler_4.4.0      
 [5] promises_1.3.0       tidyselect_1.2.1     Rcpp_1.0.12          parallel_4.4.0      
 [9] later_1.3.2          doRNG_1.8.6          fastmap_1.1.1        mime_0.12           
[13] lattice_0.22-6       R6_2.5.1             generics_0.1.3       iterators_1.0.14    
[17] tibble_3.2.1         lubridate_1.9.3      shiny_1.8.1.1        pillar_1.9.0        
[21] rlang_1.1.4          utf8_1.2.4           httpuv_1.6.15        doParallel_1.0.17   
[25] timechange_0.3.0     cli_3.6.2            magrittr_2.0.3       digest_0.6.35       
[29] foreach_1.5.2        grid_4.4.0           rstudioapi_0.16.0    xtable_1.8-4        
[33] lifecycle_1.0.4      vctrs_0.6.5          glue_1.7.0           codetools_0.2-20    
[37] rngtools_1.5.2       fansi_1.0.6          tools_4.4.0          pkgconfig_2.0.3     
[41] htmltools_0.5.8.1   

Thoughts about troubleshooting this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions