Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for 0 day run-in/wash-out parameters #4

Open
zimmeee opened this issue Aug 29, 2019 · 2 comments
Open

Support for 0 day run-in/wash-out parameters #4

zimmeee opened this issue Aug 29, 2019 · 2 comments

Comments

@zimmeee
Copy link
Contributor

zimmeee commented Aug 29, 2019

Some treatments have fast run-in/wash-out periods. The simulator operates at the day timescale, and the run-in (tc_in) or wash-out (tc_out) parameters must be > 0.

For the cognition study, we have fast acting treatments (caffeine, l-theanine) with run-in/wash-out periods measured in hours, not days. We want the simulator to be able to account for fast acting treatments.

@mrjonesolmedo
Copy link
Contributor

In the interim, it is possible to set decimal values (e.g. 0.1 days) for tc_in and tc_out.

The numerical entry UI in the Shiny app doesn't reflect this well since the increment/decrement is a full day, but it is possible to manually enter a decimal value > 0.

@zimmeee
Copy link
Contributor Author

zimmeee commented Aug 29, 2019

It does accept those values, but it still operates at the day timescale. For example, here is what the data look like with these parameter settings:

effect_size = c(0,3,6)
tc_in = c(0.1, 0.1, 0.1)
tc_out = c(.1, .1, .1)

Unknown

Note how the effect doesn't kick in until the 6th day, and each treatment period has a lag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants