Skip to content

Commit

Permalink
Release 1.3.0 (#453)
Browse files Browse the repository at this point in the history
Closes #452
  • Loading branch information
gowerc authored Oct 16, 2024
1 parent 9ec10b1 commit 5c49399
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: rbmi
Title: Reference Based Multiple Imputation
Version: 1.2.6.0001
Version: 1.3.0
Authors@R: c(
person("Craig", "Gower-Page", email = "[email protected]", role = c("aut", "cre")),
person("Alessandro", "Noci", email = "[email protected]", role = c("aut")),
Expand Down
24 changes: 20 additions & 4 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@

# rbmi (development version)
# rbmi 1.3.0

## Breaking Changes

* Convert `rstan` to be a suggested package to simplify the installation process. This means that the Bayesian imputation functionality will not be available by default. To use this feature, you will need to install `rstan` separately (#441)
* Deprecated the `seed` argument to `method_bayes()` in favour of using the base `set.seed()` function (#431)

## New Features

* Added vignette on how to implement retrieved dropout models with time-varying intercurrent event (ICE) indicators (#414)
* Added documentation clarifying potential false-positive warnings from rstan (#288)
* Include vignette on how to obtain frequentist and information-anchored inference with conditional mean imputation using `rbmi` (#406)
* Added FAQ vignette (#407)
* Added vignette on how to obtain frequentist and information-anchored inference with conditional mean imputation using `rbmi` (#406)
* Added FAQ vignette including a statement on validation (#407 #440)
* Updates to `lsmeans()` for better consistency with the `emmeans` package (#412)
* Renamed `lsmeans(..., weights = "proportional")` to `lsmeans(..., weights = "counterfactual")`to more accurately reflect the weights used in the calculation.
* Added `lsmeans(..., weights = "proportional_em")` which provides consistent results with `emmeans(..., weights = "proportional")`
* `lsmeans(..., weights = "proportional")` has been left in the package for backwards compatibility and is an alias for `lsmeans(..., weights = "counterfactual")` but now gives
a message prompting users to use either "proptional_em" or "counterfactual" instead.
* Added support for parallel processing in the `analyse()` function (#370)
* Added documentation clarifying potential false-positive warnings from rstan (#288)
* Added support for all covariance structures supported by the `mmrm` package (#437)
* Updated `rbmi` citation detail (#423 #425)

## Miscellaneous Bug Fixes

* Stopped warning messages being accidentally supressed when changing the ICE type in `impute()` (#408)
* Fixed equations not rendering properly in the `pkgdown` website (#433)


# rbmi 1.2.6

Expand Down
28 changes: 6 additions & 22 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,22 @@
## Summary of Submission

This version (v1.2.6) adjusts our unit tests to fix a false positive test failure on CRANs
Clang Fedora/Debian servers.
This version of the package adds two new vignettes as well as additional parallel processing support. It also includes a number of minor bug fixes and updates to the documentation.

## R CMD check results

There were no ERRORs or WARNINGs.

There were 2 NOTEs:

❯ checking installed package size ... NOTE
installed size is 55.6Mb
sub-directories of 1Mb or more:
libs 54.3Mb

- This is a consequence of using Rstan which produces quite large binaries when compiled. As far as I'm aware there is no way for us to reduce this and is dependent on the Stan development team. Our understanding from the [developers](https://discourse.mc-stan.org/t/using-rstan-in-an-r-package-generates-r-cmd-check-notes/26628) is that this is acceptable to ignore.

## R CMD check results

❯ checking for GNU extensions in Makefiles ... NOTE
GNU make is a SystemRequirements.

- This is a consequence of using Rstan which requires us to use GNU make to compile the Stan model as per their package usage instructions which can be found [here](https://cran.r-project.org/web/packages/rstantools/vignettes/minimal-rstan-package.html).

There were no ERRORs, no WARNINGs and no NOTEs.


## Test environments

The package was tested in the following environments:

- MacOS, R release (Local Machine)
- Fedora, R devel (Local Machine via Docker & Rhub)
- Debian, R release (Local Machine via Docker)
- Windows, R release (Win-Builder)
- Ubuntu, R release (GitHub Actions)
- MacOS, devel (macOS builder)
- Ubuntu 22.04 LTS, devel (Rhub / GitHub Actions)


## Downstream dependencies

Expand Down
2 changes: 1 addition & 1 deletion misc/antidepressant_analysis/antidepressant_trial.R
Original file line number Diff line number Diff line change
Expand Up @@ -356,4 +356,4 @@ saveRDS(ret_obj$results, file = "Results/results3.rds")
saveRDS(ret_obj$draws_obj, file = "Results/draws_obj3.rds")
saveRDS(ret_obj$times, file = "Results/times3.rds")

# results can be seen at Wolbers et al 2021 (https://arxiv.org/abs/2109.11162, table 1)
# results can be seen at Wolbers et al 2022 (https://doi.org/10.1002/pst.2234, table 1)
2 changes: 1 addition & 1 deletion misc/simulation/run_simul.R
Original file line number Diff line number Diff line change
Expand Up @@ -306,4 +306,4 @@ parallel::mclapply(seq.int(N), runsim, H0=TRUE, mc.cores = parallel::detectCores
li <- list.files('Results', pattern = '.*\\.rds$', full.names = TRUE)
saveRDS(bind_rows(lapply(li, function(X) unlist(readRDS(X)))), file = "results.rds")

# results can be seen at Wolbers et al 2021 (https://arxiv.org/abs/2109.11162, tables 2,3)
# results can be seen at Wolbers et al 2022 (https://doi.org/10.1002/pst.2234, tables 2,3)
2 changes: 1 addition & 1 deletion tests/testthat/test-parallel.R
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ test_that("Creation and management of user defined clusters works as expected",

# Check that function can be run (e.g. all elements are correctly exported)
set.seed(1223)
cl1 <- make_rbmi_cluster(2, list(inner_fun = inner_fun, e = e), c("lubridate", "nlme"))
cl1 <- make_rbmi_cluster(2, list(inner_fun = inner_fun, e = e), c("lubridate", "nlme", "dplyr"))
res_1_a <- parallel::clusterCall(cl1, rnorm, 200)
res_1_b <- parallel::clusterApplyLB(cl1, c(4, 5), outer_fun)
expect_equal(res_1_b, list(34, 35))
Expand Down
2 changes: 1 addition & 1 deletion vignettes/advanced.html
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ <h1><span class="header-section-number">6</span> Custom imputation strategies</h
<span id="cb6-17"><a href="#cb6-17" tabindex="-1"></a><span class="co">#&gt; pars &lt;- list(mu = mu, sigma = sigma)</span></span>
<span id="cb6-18"><a href="#cb6-18" tabindex="-1"></a><span class="co">#&gt; return(pars)</span></span>
<span id="cb6-19"><a href="#cb6-19" tabindex="-1"></a><span class="co">#&gt; }</span></span>
<span id="cb6-20"><a href="#cb6-20" tabindex="-1"></a><span class="co">#&gt; &lt;bytecode: 0x7f904526d7c0&gt;</span></span>
<span id="cb6-20"><a href="#cb6-20" tabindex="-1"></a><span class="co">#&gt; &lt;bytecode: 0x7fd89cc34720&gt;</span></span>
<span id="cb6-21"><a href="#cb6-21" tabindex="-1"></a><span class="co">#&gt; &lt;environment: namespace:rbmi&gt;</span></span></code></pre></div>
<p>To further illustrate this for a simple example, assume that a new strategy is to be implemented as follows:
- The marginal mean of the imputation distribution is equal to the marginal mean trajectory for the subject according to their assigned group and covariates up to the ICE.
Expand Down

0 comments on commit 5c49399

Please sign in to comment.