Giter VIP home page Giter VIP logo

logmult's Issues

Standard erros for RC model not working

Thank you for maintaining this very useful package. I just came across a bug in the function logmult::rc(). Estimating standard errors via the jackknife or bootstrapping seems to be broken.

Please see the example below. I get the same when trying the bootstrap instead of the jackknife.

library(logmult)
set.seed(123)
tbl <- table(sample(letters[1:3], 100, replace = TRUE), 
             sample(LETTERS[1:3], 100, replace = TRUE))
logmult::rc(tbl, se = "jackknife", ncpus = 1)
#> Initialising
#> Running start-up iterations..
#> Running main iterations.....
#> Done
#> Computing jackknife standard errors...
#> Error in getS3method("assoc", class(model)) : 
#>   length(class) == 1L is not TRUE

My R session info is as follows:

> sessionInfo()
R version 4.1.0 Patched (2021-07-06 r80602)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

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

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

other attached packages:
[1] logmult_0.7.3 gnm_1.1-1    

loaded via a namespace (and not attached):
 [1] MASS_7.3-54     compiler_4.1.0  Matrix_1.3-4    tools_4.1.0    
 [5] nnet_7.3-16     relimp_1.0-5    qvcalc_1.0.2    grid_4.1.0     
 [9] renv_0.14.0     lattice_0.20-44

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.