About this code

This code calculates the minimum sample size necessary for a SMART with a longitudinal, count outcome, in which the primary aim is a comparison of the mean count between two adaptive interventions starting with different interventions.

How can a behavioral scientist use this code?

Behavioral intervention scientists can use this code to calculate the sample size for a SMART with a longitudinal, count outcome.

What method does this code implement?

This code enables users to calculate the relationship between the sample size and power by simulation experiment (the empirical power across Monte Carlo simulations). The data analysis method is a weighted least squares regression approach with a negative binomial link function (which is often used to analyze count outcomes with overdispersion). In a SMART, the weights (which are potentially impacted by treatment) are known, by design.

Related References

Yap J., Dziak J. J., Maiti R., et al. (2023). Sample size estimation for comparing dynamic treatment regimens in a SMART: A Monte Carlo-based approach and case study with longitudinal overdispersed count outcomes. Statistical Methods in Medical Research. doi:10.1177/09622802231167435

Join the d3center Mailing List

Keep up to date with the latest news, events, software releases, learning modules, and resources from the d3center.