Monday, April 10, 2023

DBDA2E Programs Updated

Three R scripts within the set of DBDA2E programs have been updated to work properly with R4.0+. You can get the updated versions by downloading the entire new zip file from the bottom of the software page at https://sites.google.com/site/doingbayesiandataanalysis/software-installation 

The three changes:

  • DBDA2E-utilities.R changed a line that used class() into inherits().
  • Jags-Ycount-Xnom2fac-MpoissonExp.R changed postContrast = ( mcmcMat[, ... to   postContrast = as.vector( mcmcMat[, ...
  • Jags-Yord-Xnom2grp-MnormalHet-Example.R has a frequentist t.test appended at the end, and needed an update to coerce a vector to a factor.

Thanks to Tom Busey for noticing and fixing the class() issue, thanks to Han Diesfeldt for pointing out a problem when running -MpoissonExp.R, and thanks to Artur Araujo for noticing and fixing the issue in -MnormalHet.

These three changes follow a raft of changes previously made to accommodate R4.1, as previously posted at http://doingbayesiandataanalysis.blogspot.com/2021/07/dbda2e-r-scripts-updated-for-r-41.html


No comments:

Post a Comment