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

[REVIEW]: simstudy: Illuminating research methods through data generation #2763

Closed
40 tasks done
whedon opened this issue Oct 20, 2020 · 68 comments
Closed
40 tasks done
Assignees
Labels
accepted C++ published Papers published in JOSS R recommend-accept Papers recommended for acceptance in JOSS. review

Comments

@whedon
Copy link

whedon commented Oct 20, 2020

Submitting author: @assignUser (Jacob Wujciak-Jens)
Repository: https://github.com/kgoldfeld/simstudy/
Version: v0.2.2
Editor: @mikldk
Reviewer: @gagolews, @brunaw
Archive: 10.5281/zenodo.4134675

⚠️ JOSS reduced service mode ⚠️

Due to the challenges of the COVID-19 pandemic, JOSS is currently operating in a "reduced service mode". You can read more about what that means in our blog post.

Status

status

Status badge code:

HTML: <a href="https://joss.theoj.org/papers/640fd4333948933b2817343e86df3424"><img src="https://joss.theoj.org/papers/640fd4333948933b2817343e86df3424/status.svg"></a>
Markdown: [![status](https://joss.theoj.org/papers/640fd4333948933b2817343e86df3424/status.svg)](https://joss.theoj.org/papers/640fd4333948933b2817343e86df3424)

Reviewers and authors:

Please avoid lengthy details of difficulties in the review thread. Instead, please create a new issue in the target repository and link to those issues (especially acceptance-blockers) by leaving comments in the review thread below. (For completists: if the target issue tracker is also on GitHub, linking the review thread in the issue or vice versa will create corresponding breadcrumb trails in the link target.)

Reviewer instructions & questions

@gagolews & @brunaw, please carry out your review in this issue by updating the checklist below. If you cannot edit the checklist please:

  1. Make sure you're logged in to your GitHub account
  2. Be sure to accept the invite at this URL: https://github.com/openjournals/joss-reviews/invitations

The reviewer guidelines are available here: https://joss.readthedocs.io/en/latest/reviewer_guidelines.html. Any questions/concerns please let @mikldk know.

Please start on your review when you are able, and be sure to complete your review in the next six weeks, at the very latest

Review checklist for @gagolews

Conflict of interest

  • I confirm that I have read the JOSS conflict of interest (COI) policy and that: I have no COIs with reviewing this work or that any perceived COIs have been waived by JOSS for the purpose of this review.

Code of Conduct

General checks

  • Repository: Is the source code for this software available at the repository url?
  • License: Does the repository contain a plain-text LICENSE file with the contents of an OSI approved software license?
  • Contribution and authorship: Has the submitting author (@assignUser) made major contributions to the software? Does the full list of paper authors seem appropriate and complete?
  • Substantial scholarly effort: Does this submission meet the scope eligibility described in the JOSS guidelines

Functionality

  • Installation: Does installation proceed as outlined in the documentation?
  • Functionality: Have the functional claims of the software been confirmed?
  • Performance: If there are any performance claims of the software, have they been confirmed? (If there are no claims, please check off this item.)

Documentation

  • A statement of need: Do the authors clearly state what problems the software is designed to solve and who the target audience is?
  • Installation instructions: Is there a clearly-stated list of dependencies? Ideally these should be handled with an automated package management solution.
  • Example usage: Do the authors include examples of how to use the software (ideally to solve real-world analysis problems).
  • Functionality documentation: Is the core functionality of the software documented to a satisfactory level (e.g., API method documentation)?
  • Automated tests: Are there automated tests or manual steps described so that the functionality of the software can be verified?
  • Community guidelines: Are there clear guidelines for third parties wishing to 1) Contribute to the software 2) Report issues or problems with the software 3) Seek support

Software paper

  • Summary: Has a clear description of the high-level functionality and purpose of the software for a diverse, non-specialist audience been provided?
  • A statement of need: Do the authors clearly state what problems the software is designed to solve and who the target audience is?
  • State of the field: Do the authors describe how this software compares to other commonly-used packages?
  • Quality of writing: Is the paper well written (i.e., it does not require editing for structure, language, or writing quality)?
  • References: Is the list of references complete, and is everything cited appropriately that should be cited (e.g., papers, datasets, software)? Do references in the text use the proper citation syntax?

Review checklist for @brunaw

Conflict of interest

  • I confirm that I have read the JOSS conflict of interest (COI) policy and that: I have no COIs with reviewing this work or that any perceived COIs have been waived by JOSS for the purpose of this review.

Code of Conduct

General checks

  • Repository: Is the source code for this software available at the repository url?
  • License: Does the repository contain a plain-text LICENSE file with the contents of an OSI approved software license?
  • Contribution and authorship: Has the submitting author (@assignUser) made major contributions to the software? Does the full list of paper authors seem appropriate and complete?
  • Substantial scholarly effort: Does this submission meet the scope eligibility described in the JOSS guidelines

Functionality

  • Installation: Does installation proceed as outlined in the documentation?
  • Functionality: Have the functional claims of the software been confirmed?
  • Performance: If there are any performance claims of the software, have they been confirmed? (If there are no claims, please check off this item.)

Documentation

  • A statement of need: Do the authors clearly state what problems the software is designed to solve and who the target audience is?
  • Installation instructions: Is there a clearly-stated list of dependencies? Ideally these should be handled with an automated package management solution.
  • Example usage: Do the authors include examples of how to use the software (ideally to solve real-world analysis problems).
  • Functionality documentation: Is the core functionality of the software documented to a satisfactory level (e.g., API method documentation)?
  • Automated tests: Are there automated tests or manual steps described so that the functionality of the software can be verified?
  • Community guidelines: Are there clear guidelines for third parties wishing to 1) Contribute to the software 2) Report issues or problems with the software 3) Seek support

Software paper

  • Summary: Has a clear description of the high-level functionality and purpose of the software for a diverse, non-specialist audience been provided?
  • A statement of need: Do the authors clearly state what problems the software is designed to solve and who the target audience is?
  • State of the field: Do the authors describe how this software compares to other commonly-used packages?
  • Quality of writing: Is the paper well written (i.e., it does not require editing for structure, language, or writing quality)?
  • References: Is the list of references complete, and is everything cited appropriately that should be cited (e.g., papers, datasets, software)? Do references in the text use the proper citation syntax?
@whedon
Copy link
Author

whedon commented Oct 20, 2020

Hello human, I'm @whedon, a robot that can help you with some common editorial tasks. @gagolews, @brunaw it looks like you're currently assigned to review this paper 🎉.

⚠️ JOSS reduced service mode ⚠️

Due to the challenges of the COVID-19 pandemic, JOSS is currently operating in a "reduced service mode". You can read more about what that means in our blog post.

⭐ Important ⭐

If you haven't already, you should seriously consider unsubscribing from GitHub notifications for this (https://github.com/openjournals/joss-reviews) repository. As a reviewer, you're probably currently watching this repository which means for GitHub's default behaviour you will receive notifications (emails) for all reviews 😿

To fix this do the following two things:

  1. Set yourself as 'Not watching' https://github.com/openjournals/joss-reviews:

watching

  1. You may also like to change your default settings for this watching repositories in your GitHub profile here: https://github.com/settings/notifications

notifications

For a list of things I can do to help you, just type:

@whedon commands

For example, to regenerate the paper pdf after making changes in the paper's md or bib files, type:

@whedon generate pdf

@whedon
Copy link
Author

whedon commented Oct 20, 2020

PDF failed to compile for issue #2763 with the following error:

Can't find any papers to compile :-(

@mikldk
Copy link

mikldk commented Oct 20, 2020

@whedon generate pdf from branch joss-submission

@whedon
Copy link
Author

whedon commented Oct 20, 2020

Attempting PDF compilation from custom branch joss-submission. Reticulating splines etc...

@whedon
Copy link
Author

whedon commented Oct 20, 2020

👉📄 Download article proof 📄 View article proof on GitHub 📄 👈

@mikldk
Copy link

mikldk commented Oct 20, 2020

@whedon check references from branch joss-submission

@whedon
Copy link
Author

whedon commented Oct 20, 2020

Attempting to check references... from custom branch joss-submission

@whedon
Copy link
Author

whedon commented Oct 20, 2020

Reference check summary (note 'MISSING' DOIs are suggestions that need verification):

OK DOIs

- 10.18637/jss.v037.i03 is OK
- 10.1016/j.jbusvent.2019.02.001 is OK
- 10.20982/tqmp.16.4.p248 is OK
- 10.1007/s40273-020-00946-y is OK
- 10.1080/00031305.1991.10475828 is OK
- 10.1111/dmcn.14552 is OK
- 10.18637/jss.v069.i04 is OK
- 10.31234/osf.io/59uaq is OK
- 10.1002/sim.8452 is OK
- 10.1097/MLR.0000000000001063 is OK
- 10.1080/03610918.2012.718841 is OK
- 10.1101/215889 is OK
- 10.1007/s10463-020-00761-4 is OK
- 10.1186/s13063-019-3364-x is OK

MISSING DOIs

- None

INVALID DOIs

- None

@mikldk
Copy link

mikldk commented Oct 20, 2020

@gagolews, @brunaw: Thanks for agreeing to review. Please carry out your review in this issue by updating the checklist above and giving feedback in this issue. The reviewer guidelines are available here: https://joss.readthedocs.io/en/latest/reviewer_guidelines.html. If possible create issues (and cross-reference) in the submission's repository to avoid too specific discussions in this review thread.

If you have any questions or concerns please let me know.

@brunaw
Copy link

brunaw commented Oct 20, 2020

I personally appreciate the creation of this package, since I have had to come up with my own data simulation procedures several times, for many different contexts. I think this package should be accepted because it will help lots of researchers with the same issues. Comments and suggestions about the code & content/documentation of the package are below.

Package content/documentation

  • Add latex to the README for clarity

  • There are a few grammatical errors in the vignettes that could be improved, I suggest using Grammarly for a text review.

  • I don't think the description for the formula and variance arguments is clear yet. For instance, what does it mean to say that formula = 10? Likewise, what is the variance argument related to? I think a good way of solving this would be a concrete, written-up example with a Normal distribution, showing that thevariance argument is the variance of the Normal distribution you're simulating from, and what does the formula argument represent in that.

  • It might be useful to use a simulation seed (set.seed()) throughout the vignettes, so people will know that their code is working as it should be when replicating it. For some vignettes, only running the code leads to quite different results from what is seen in the package website (since it's all random).

  • I think it would be nice to have your references listed in the vignettes. For example, simulating correlated (multivariate data) is not a trivial thing, since we don't have as much theory available for multivariate distributions beyond the Normal case. I had to go check the reference you cite in the JOSS paper for the binary case, since I hadn't come across that method before. Other users might be interested in knowing exactly what is going on in the code, especially if they need to explain that later (in a paper, for example).

  • You state the existence of the Contributor Code of Conduct, but actual Contributor guidelines are not provided, or how to report a problem. I think it would be good to write a few lines in the README addressing that.

Package code

  • The package installs locally (with a cloned repository and CRAN) but it wouldn't install from GitHub, the following URL was not found:

https://api.github.com/repos/kgoldfeld/simstudy/tarball/master

  • The package builds okay after installing the packages used in the vignettes
  • Tests are provided and also run correctly
  • I haven't found any other issues with the code itself

@assignUser
Copy link

@brunaw Thank you for your review and your positive recommendation! I will try to address each point you have brought up

  • Could you elaborate in what way you would like latex to be added to the README?
  • We will review the texts.
  • The meaning of each parameter for all available distributions is explained in the package help under ?distributions and in the overview vignette. Is this in line with what you had in mind?
  • I agree on the seed, which is already the case in some vignettes, we will work on consistency there. Or are there reasons not to @kgoldfeld?
  • It makes sense to add the reference(s) to the documentation.
  • CoC and Contributor Guidlines are in .github/CODE_OF_CONDUCT.md and .github/CONTRIBUTING.md respectively so they should be picked up by github for new users, furthermore they are also prominently linked in the pkgdown site. Maybe we could add a note to the README about contributions/error reports @kgoldfeld?
  • How are you installing from github? There seems to be a mention of the master branch which we renamed to main. I tested devtools::install_github("kgoldfeld/simstudy") and that works as intended. I just noticed & fixed that the codemeta (generated with codemetar) was referring to the the master branch for news as well.

@brunaw
Copy link

brunaw commented Oct 20, 2020

@assignUser Thank you for the quick reply, and I apologize if some of my comments weren't clear.

  • For example, you have log(\mu) in the text that could be shown as . This can be quite tricky (https://stackoverflow.com/questions/35498525/latex-rendering-in-readme-md-on-github) to do and not necessarily pretty, but I think it could be useful for you (it's only a suggestion though)
  • Okay, thank you
  • Yes, exactly, I thought that even with the explanation it wasn't clear for the general user. People who do simulation frequently might get it when reading it, but it would be helpful if the argument definitions were explained in a bit more detail.
  • Okay, thank you
  • Okay, thank you
  • Okay, I might have missed it on the pkgdown website, sorry about that! Maybe just link it to the README as well
  • I wish I could come up with a more helpful explanation for you, but I couldn't wrap my head around it either. I just run devtools::install_github("kgoldfeld/simstudy") and get the error. I thought it was an internet connection problem but I tried it on a different network (just now) and the same error happens. The code doesn't suggest anything about it either, so I don't know what causes it.

@assignUser
Copy link

assignUser commented Oct 20, 2020

@brunaw
Latex: Ah I see. As the symbols are rendered correctly on the pkgdown page and any workarounds for github might interfere with that I think we will keep it as is (sadly, I would like it to be rendered too, maybe github will add it at some point). @kgoldfeld fixed it.

Arguments: I feel that with all of the vignettes and targeted documentation we have this covered as a specific example for normal would not cover all use cases, unlike the vignettes/?distributions. Please let me know if this is still a sticking point for you.

Install: I just found the solution for this issue. This is a recently solved problem where devtools/remotes was assuming the default branch to be "master" which was fixed by r-lib/remotes#510 but is not on cran yet: https://remotes.r-lib.org/news/index.html
You should be able to install by setting devtools::install_github("kgoldfeld/simstudy", ref = "HEAD")

@assignUser
Copy link

@whedon generate pdf

@whedon
Copy link
Author

whedon commented Oct 20, 2020

PDF failed to compile for issue #2763 with the following error:

Can't find any papers to compile :-(

@assignUser
Copy link

@whedon generate pdf from branch joss-submission

@whedon
Copy link
Author

whedon commented Oct 20, 2020

Attempting PDF compilation from custom branch joss-submission. Reticulating splines etc...

@whedon
Copy link
Author

whedon commented Oct 20, 2020

👉📄 Download article proof 📄 View article proof on GitHub 📄 👈

@kgoldfeld
Copy link

@brunaw
I was able to fix the LaTex issue without affecting the pkgdown site. Thanks for that suggestion - it looks much better - it always bothered me.

As for the grammar of the vignettes - were there any that were particularly egregious? I will certainly go through all of them - as you see there are quite a few - but it would help if you found that particular ones need special attention.

@kgoldfeld
Copy link

@brunaw
I was able to go through the vignettes - there were some really bad typos throughout. Thanks so much for taking the time to catch all that. I have added seeds as well throughout where there were none. Thanks again.

@gagolews
Copy link

gagolews commented Oct 21, 2020

The package may be useful to some researchers and students, in cases where generation of data following some typical models
is required. Overall, it is quite well written and well documented. The package's API can be considered user friendly. Yet, of course, more exotic scenarios will require its users to implement the missing functionality by hand anyway (and learn how
to implement the models included in simstudy anyway). I recommended the paper be accepted provided that the authors address what follows.

Paper — remarks:

  1. Neither in the title nor in the summary the reader is informed that it is an R package

  2. Mention it's availability on CRAN, add link to CRAN entry, and info on how to install the package

  3. The package is documented quite well (vignettes), the link to https://kgoldfeld.github.io/simstudy/articles/simstudy.html should therefore be emphasised in the main text, as in "for more details on the package, use cases, etc. (...), see (...)".
    Also, add this information to the README file.

  4. $log(\mu)$$\log(\mu)$

Vignettes — remarks:

  1. https://kgoldfeld.github.io/simstudy/articles/simstudy.html

    a. $log(\mu)$$\log(\mu)$

    b. "please refer to other package vignettes" – you mean other vignettes included in this very package?

    c. "One option is to to use"

    d. "has the following fields: varname, formula, variance, dist, and link" — consider using varname, formula (code)

    e. e.g., in defData(def, varname = "female", dist = "binary", formula = "-2 + age * 0.1", link = "logit") — I guess a more R-way (which is a matter of taste) would be to specify formula = -2+age*0.1, i.e., as an R expression, see ?deparse
    and ?substitute. The same with varname and dist. See base R functions transform() and subset() for inspiration.

    f. $uniform$uniform

    g. $uniforminteger$uniforminteger

  2. https://kgoldfeld.github.io/simstudy/articles/correlated.html

    a. side note: copulas (copulae) are nice tools for modelling of dependencies between random variables

@gagolews
Copy link

@kgoldfeld
Copy link

@gagolews Thanks for your feedback - will make the editing changes. I agree with you regarding 1e - we may make that change in a future iteration, though there are some "formulas" where there is no standard R formulation. The following (clearly nonsensical) snippet shows three distributions where the standard formulas don't really apply:

library(simstudy)

d <- defData(varname = "x", formula = "0;1", dist = "uniform")
d <- defData(d, varname ="y", formula = "-2+x;-1 + 0.5*x", 
             dist = "categorical", link = "logit")
d <- defData(d, varname = "z", formula = "x|0.5 + y|0.5", dist = "mixture")

set.seed(5)
genData(10, d)
#>     id         x y         z
#>  1:  1 0.2002145 3 0.2002145
#>  2:  2 0.6852186 3 3.0000000
#>  3:  3 0.9168758 3 0.9168758
#>  4:  4 0.2843995 2 0.2843995
#>  5:  5 0.1046501 2 0.1046501
#>  6:  6 0.7010575 1 0.7010575
#>  7:  7 0.5279600 3 0.5279600
#>  8:  8 0.8079352 3 0.8079352
#>  9:  9 0.9565001 3 3.0000000
#> 10: 10 0.1104530 1 1.0000000

With respect to 2a, I agree that copulas are useful in generating correlated data. Indeed, that is what we are doing in simstudy to generated correlated data (for all distributions other than the normal distribution).

@whedon
Copy link
Author

whedon commented Oct 26, 2020

👉📄 Download article proof 📄 View article proof on GitHub 📄 👈

@whedon
Copy link
Author

whedon commented Oct 26, 2020

Reference check summary (note 'MISSING' DOIs are suggestions that need verification):

OK DOIs

- 10.18637/jss.v037.i03 is OK
- 10.1016/j.jbusvent.2019.02.001 is OK
- 10.20982/tqmp.16.4.p248 is OK
- 10.1007/s40273-020-00946-y is OK
- 10.1080/00031305.1991.10475828 is OK
- 10.1111/dmcn.14552 is OK
- 10.18637/jss.v069.i04 is OK
- 10.31234/osf.io/59uaq is OK
- 10.1002/sim.8452 is OK
- 10.1097/MLR.0000000000001063 is OK
- 10.1080/03610918.2012.718841 is OK
- 10.1101/215889 is OK
- 10.1007/s10463-020-00761-4 is OK
- 10.1186/s13063-019-3364-x is OK

MISSING DOIs

- None

INVALID DOIs

- None

@gagolews
Copy link

@mikldk I now recommend the paper be accepted for publication.

@mikldk
Copy link

mikldk commented Oct 27, 2020

@whedon set 10.5281/zenodo.4134675 as archive

@whedon
Copy link
Author

whedon commented Oct 27, 2020

OK. 10.5281/zenodo.4134675 is the archive.

@mikldk
Copy link

mikldk commented Oct 27, 2020

@whedon set v0.2.2 as version

@whedon
Copy link
Author

whedon commented Oct 27, 2020

OK. v0.2.2 is the version.

@mikldk
Copy link

mikldk commented Oct 27, 2020

@whedon generate pdf

@whedon
Copy link
Author

whedon commented Oct 27, 2020

👉📄 Download article proof 📄 View article proof on GitHub 📄 👈

@mikldk
Copy link

mikldk commented Oct 27, 2020

@gagolews, @brunaw Thank you very much for your effort in reviewing this paper!

@mikldk
Copy link

mikldk commented Oct 27, 2020

@whedon accept

@whedon
Copy link
Author

whedon commented Oct 27, 2020

Attempting dry run of processing paper acceptance...

@whedon whedon added the recommend-accept Papers recommended for acceptance in JOSS. label Oct 27, 2020
@whedon
Copy link
Author

whedon commented Oct 27, 2020

👋 @openjournals/joss-eics, this paper is ready to be accepted and published.

Check final proof 👉 openjournals/joss-papers#1870

If the paper PDF and Crossref deposit XML look good in openjournals/joss-papers#1870, then you can now move forward with accepting the submission by compiling again with the flag deposit=true e.g.

@whedon accept deposit=true

@whedon
Copy link
Author

whedon commented Oct 27, 2020

Reference check summary (note 'MISSING' DOIs are suggestions that need verification):

OK DOIs

- 10.18637/jss.v037.i03 is OK
- 10.1016/j.jbusvent.2019.02.001 is OK
- 10.20982/tqmp.16.4.p248 is OK
- 10.1007/s40273-020-00946-y is OK
- 10.1080/00031305.1991.10475828 is OK
- 10.1111/dmcn.14552 is OK
- 10.18637/jss.v069.i04 is OK
- 10.31234/osf.io/59uaq is OK
- 10.1002/sim.8452 is OK
- 10.1097/MLR.0000000000001063 is OK
- 10.1080/03610918.2012.718841 is OK
- 10.1101/215889 is OK
- 10.1007/s10463-020-00761-4 is OK
- 10.1186/s13063-019-3364-x is OK

MISSING DOIs

- None

INVALID DOIs

- None

@arfon
Copy link
Member

arfon commented Oct 27, 2020

@whedon accept deposit=true

@whedon
Copy link
Author

whedon commented Oct 27, 2020

Doing it live! Attempting automated processing of paper acceptance...

@whedon whedon added accepted published Papers published in JOSS labels Oct 27, 2020
@whedon
Copy link
Author

whedon commented Oct 27, 2020

🐦🐦🐦 👉 Tweet for this paper 👈 🐦🐦🐦

@whedon
Copy link
Author

whedon commented Oct 27, 2020

🚨🚨🚨 THIS IS NOT A DRILL, YOU HAVE JUST ACCEPTED A PAPER INTO JOSS! 🚨🚨🚨

Here's what you must now do:

  1. Check final PDF and Crossref metadata that was deposited 👉 Creating pull request for 10.21105.joss.02763 joss-papers#1874
  2. Wait a couple of minutes to verify that the paper DOI resolves https://doi.org/10.21105/joss.02763
  3. If everything looks good, then close this review issue.
  4. Party like you just published a paper! 🎉🌈🦄💃👻🤘

Any issues? Notify your editorial technical team...

@arfon
Copy link
Member

arfon commented Oct 27, 2020

@gagolews, @brunaw - many thanks for your reviews here and to @mikldk for editing this submission ✨

@assignUser - your paper is now accepted into JOSS ⚡🚀💥

@arfon arfon closed this as completed Oct 27, 2020
@whedon
Copy link
Author

whedon commented Oct 27, 2020

🎉🎉🎉 Congratulations on your paper acceptance! 🎉🎉🎉

If you would like to include a link to your paper from your README use the following code snippets:

Markdown:
[![DOI](https://joss.theoj.org/papers/10.21105/joss.02763/status.svg)](https://doi.org/10.21105/joss.02763)

HTML:
<a style="border-width:0" href="https://doi.org/10.21105/joss.02763">
  <img src="https://joss.theoj.org/papers/10.21105/joss.02763/status.svg" alt="DOI badge" >
</a>

reStructuredText:
.. image:: https://joss.theoj.org/papers/10.21105/joss.02763/status.svg
   :target: https://doi.org/10.21105/joss.02763

This is how it will look in your documentation:

DOI

We need your help!

Journal of Open Source Software is a community-run journal and relies upon volunteer effort. If you'd like to support us please consider doing either one (or both) of the the following:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted C++ published Papers published in JOSS R recommend-accept Papers recommended for acceptance in JOSS. review
Projects
None yet
Development

No branches or pull requests

7 participants