snSMART
Small N Sequential Multiple Assignment Randomized Trial Methods
Description
Consolidated data simulation, sample size calculation and analysis functions for several snSMART (small sample sequential, multiple assignment, randomized trial) designs under one library. See Wei, B., Braun, T.M., Tamura, R.N. and Kidwell, K.M. "A Bayesian analysis of small n sequential multiple assignment randomized trials (snSMARTs)." (2018) Statistics in medicine, 37(26), pp.3723-3732 <doi:10.1002/sim.7900>.
Downloads
244
Last 30 days
17545th
720
Last 90 days
2.7K
Last year
Trend: +45.2% (30d vs prior 30d)
9
Last 30 days
23
Last 90 days
99
Last year
Trend: -35.7% (30d vs prior 30d)
r2u: no daily series yet
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check History
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 23, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 22, 2026
examples
Running examples in ‘snSMART-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: group_seq
> ### Title: BJSM method for interim analysis and final analysis of group
> ### sequential
...[truncated]...
LE = 6000, n.adapt = 1000, n_MCMC_chain = 1
+ )
Error in update.jags(model, n.iter, ...) : Error in node beta[5]
Slicer stuck at value with infinite density
Calls: group_seq ... do.call -> <Anonymous> -> jags.samples -> update.jags
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
package dependencies
Package required but not available: ‘geepack’ See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual.
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 6, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 5, 2026
examples
Running examples in ‘snSMART-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: group_seq
> ### Title: BJSM method for interim analysis and final analysis of group
> ### sequential
...[truncated]...
LE = 6000, n.adapt = 1000, n_MCMC_chain = 1
+ )
Error in update.jags(model, n.iter, ...) : Error in node beta[3]
Slicer stuck at value with infinite density
Calls: group_seq ... do.call -> <Anonymous> -> jags.samples -> update.jags
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 2, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 1, 2026
examples
Running examples in ‘snSMART-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: groupseqDATA_look1
> ### Title: Group sequential data look 1
> ### Aliases: groupseqDATA_look1
> ### K
...[truncated]...
LE = 6000, n.adapt = 1000, n_MCMC_chain = 1
+ )
Error in update.jags(model, n.iter, ...) : Error in node beta[1]
Slicer stuck at value with infinite density
Calls: group_seq ... do.call -> <Anonymous> -> jags.samples -> update.jags
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 20, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 19, 2026
examples
Running examples in ‘snSMART-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: group_seq
> ### Title: BJSM method for interim analysis and final analysis of group
> ### sequential
...[truncated]...
+ n_MCMC_chain = 1, ci = 0.95, DTR = TRUE
+ )
Error in update.jags(model, n.iter, ...) : Error in node beta[5]
Slicer stuck at value with infinite density
Calls: group_seq ... do.call -> <Anonymous> -> jags.samples -> update.jags
Execution halted