Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
## Code Descriptions (Note: links will redirect to Github; use the files browser to stay in OSF) - [sampleSize.R](https://github.com/nseewald1/rmSMARTSize/blob/master/sampleSize.R): Contains function to compute sample size for a SMART with a longitudinal outcome in which the primary aim is to compare two embedded DTRs. - [functions.R](https://github.com/nseewald1/rmSMARTSize/blob/master/functions.R): Helper functions for simulations and parameter estimation. - [generativeFunctions.R](https://github.com/nseewald1/rmSMARTSize/blob/master/generativeFunctions.R): Helper functions for data generation. - [generateSMART.R](https://github.com/nseewald1/rmSMARTSize/blob/master/generateSMART.R): Main function used to generate data from a SMART. - [simulateSMART.R](https://github.com/nseewald1/rmSMARTSize/blob/master/simulateSMART.R): Wrapper to generateSMART and helper functions to enable iterative data generation and parameter estimation. - [init.R](https://github.com/nseewald1/rmSMARTSize/blob/master/init.R): Script to initialize R environment for simulations - [resultFunctions.R](https://github.com/nseewald1/rmSMARTSize/blob/master/resultFunctions.R): Helper functions for compiling results and tables The [Simulations](https://github.com/nseewald1/rmSMARTSize/blob/master/Simulations) folder contains scripts to perform simulations under all scenarios compiled in the manuscript ([ArXiv](https://arxiv.org/abs/1810.13094)). Simulations are designed to be run in parallel in an environment where all available cores can be dedicated to this task; as such, we recommend appropriately modifying [simulateSMART.R](https://github.com/nseewald1/rmSMARTSize/blob/master/simulateSMART.R) before running simulation scripts on, say, a laptop rather than a high-performance cluster.
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
Accept
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information, see our Privacy Policy and information on cookie use.
Accept
×

Start managing your projects on the OSF today.

Free and easy to use, the Open Science Framework supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.