Skip to content

JOSS Review #30

@ezraporter

Description

@ezraporter

Thanks for allowing me to review openjournals/joss-reviews#6971! Below are some comments that address the unchecked boxes on my checklist.

Installation

  • The package doesn't provide an automated method for installing the JAGS dependency. The R ecosystem seems to have neglected this generally so it seems unfair to hold this package responsible for writing a suitable installation script. Minimally, the README should include a link out to where JAGS came be downloaded or instructions like these: https://gist.github.com/dennisprangle/e26923fae7477566510757ab3341f54c.

Documentation

  • Documentation for BJSM_binary() says n_MCMC_chain defaults to 1 but it has no default.
  • Documentation for LPJSM_binary() says ... are not currently used but they appear to be forwarded to geepack::geeglm()

Manuscript

  • The statement of need makes specific reference to trial design and power calculation utilities. However, these are only discussed in the manuscript in Table 1. The manuscript could benefit from more detailed information about what these utilities are and why they'd be useful for a trial.
  • The manuscript contains a good amount of API documentation and example output that's already available in the package documentation.

Additional suggestions not impacting the review

  • Naming conventions differ across the input data for BJSM_binary(), group_seq(), and BJSM_c(). Harmonizing them might make for a cleaner user experience. For example, these sets of values all seem to contain similar information but have different names:
    • treatment_stageI/response_stageI/treatment_stageII/response_stageII
    • trt.1st/resp.1st/trt.2nd/resp.2nd
    • trt1/stage1outcome/trt2/stage2outcome
  • Some parameters are mapped directly to parameters of lower-level functions like rjags::jags.model. It would be helpful to note in the documentation where this is happening so the user can know where to get more information.
  • The output of BJSM_binary() might be improved by grouping together common elements into a nested list. For example, there are many elements prefixed with ci_. Could those be better collected into a ci element where you could access ci$pi_A and ci$pi_B. My general advice would be to look at where you have underscores and consider if that's better as a nested list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions