-
Notifications
You must be signed in to change notification settings - Fork 9
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
Make simulate_data() for internal use and apply in the testthat files #92
Conversation
To folks wishing to recreate the figures in the appendix using the old simulate_data() code, take a visit to the radEmu supplementary repository. This is where we now keep the version that was used to generate the figures in the corresponding manuscript.
Forgive me if you've already figured this out @gthopkins, but now that you made the |
Thank you for the help @svteichman! I realized quickly that I need to call the function as radEmu:::simulate_data() in the vignette and testing section, but I figured I would finish updating the testing before correcting this issue in the PR. I will consider if I need to add more functionality besides the mean_z argument as I go through updating the vignette, thank you for the great tip! |
@adw96 I have now changed the vast majority of the The two tests in question are:
and, identically, in a seperate simulation
Do you have any sense why we would want to confirm the p-values match these two arbitrary numbers? If not, could you connect me with someone who can clarify? Any p-value will be highly sensitive to the means of data generation, so I am not sure of the best way to proceed. |
This addresses feature request/issue statdivlab#88
@adw96 I have added a "partially_verbose" argument to emuFit, which allows users to track progress of the algorithm (mostly score tests) without the annotations given by
but we will still get insightful updates like:
This amounts to quite a simple change. Please note: this is now a "compound" pull request, in that it contains all of my commits pertaining to 1) changing the testing files and 2) the partially_verbose argument. |
…g process, but we may remove p-value check soon.
@gthopkins overall this looks great! I see there is a merge conflict with "test-emuFit.R", could you please pull the recent updates to the package and resolve this merge conflict? I think that everything from the For the partially verbose option, could you make partially verbose an option to add to the |
@svteichman yes, I would be happy to make that change! Personally, I find very little value in the current "verbose = TRUE" argument. For example, the technical messages in likeness of
are out of context and do not clarify much for me. I propose the following three settings:
What are your thoughts on this? I just think people are more likely to set "verbose = TRUE" as the immediate alternative to FALSE, but I do not think anyone would actually want the development messages. |
I think this is a great idea! Thanks for thinking through this. I use the verbose = T messages but I agree that a user will rarely need them. |
To folks wishing to recreate the figures in the appendix using the old simulate_data() code, take a visit to the radEmu supplementary repository. This is where we now keep the version that was used to generate the figures in the corresponding manuscript.