Skip to content

Commit b874528

Browse files
469 cran (#470)
1 parent 73d3681 commit b874528

35 files changed

+63
-68
lines changed

DESCRIPTION

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
Type: Package
22
Package: mmrm
33
Title: Mixed Models for Repeated Measures
4-
Version: 0.3.12.9003
4+
Version: 0.3.13
55
Authors@R: c(
6-
person("Daniel", "Sabanes Bove", , "daniel.sabanes_bove@rconis.com", role = c("aut", "cre")),
6+
person("Daniel", "Sabanes Bove", , "daniel.sabanes_bove@rconis.com", role = c("aut", "cre"),
7+
comment = c(ORCID = "0000-0002-0176-9239")),
78
person("Liming", "Li", , "liming.li@roche.com", role = "aut"),
89
person("Julia", "Dedic", , "julia.dedic@roche.com", role = "aut"),
910
person("Doug", "Kelkhoff", , "doug.kelkhoff@roche.com", role = "aut"),
@@ -21,7 +22,8 @@ Authors@R: c(
2122
person("Gilead Sciences, Inc.", role = c("cph", "fnd")),
2223
person("F. Hoffmann-La Roche AG", role = c("cph", "fnd")),
2324
person("Merck Sharp & Dohme, Inc.", role = c("cph", "fnd")),
24-
person("AstraZeneca plc", role = c("cph", "fnd"))
25+
person("AstraZeneca plc", role = c("cph", "fnd")),
26+
person("inferential.biostatistics GmbH", role = c("cph", "fnd"))
2527
)
2628
Description: Mixed models for repeated measures (MMRM) are a popular
2729
choice for analyzing longitudinal continuous outcomes in randomized

NAMESPACE

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,15 @@ export(refit_multiple_optimizers)
4444
export(std_start)
4545
export(tidy)
4646
import(checkmate)
47-
importFrom(Matrix,.bdiag)
4847
importFrom(Rcpp,evalCpp)
4948
importFrom(Rdpack,reprompt)
5049
importFrom(generics,augment)
5150
importFrom(generics,glance)
5251
importFrom(generics,tidy)
53-
importFrom(lifecycle,deprecated)
5452
importFrom(methods,is)
5553
importFrom(nlme,VarCorr)
56-
importFrom(parallel,clusterApply)
5754
importFrom(stats,AIC)
5855
importFrom(stats,BIC)
59-
importFrom(stats,acf)
6056
importFrom(stats,coef)
6157
importFrom(stats,deviance)
6258
importFrom(stats,drop.terms)
@@ -69,7 +65,4 @@ importFrom(stats,residuals)
6965
importFrom(stats,simulate)
7066
importFrom(stats,terms)
7167
importFrom(stats,vcov)
72-
importFrom(stringr,boundary)
73-
importFrom(tibble,as_tibble)
74-
importFrom(utils,modifyList)
7568
useDynLib(mmrm, .registration = TRUE)

NEWS.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# mmrm 0.3.12.9003
1+
# mmrm 0.3.13
22

33
### Bug Fixes
44

5-
- Previously `emmeans` will return `NA` for spatial covariance structure. This is fixed now.
6-
- Previously `car::Anova` will give incorrect results if an interaction term is included and the order of the covariate of interest is not the first categorical variable. This is fixed now.
7-
- Previously `car::Anova` will fail if the model does not contain intercept. This is fixed now.
8-
- Previously, `mmrm` will ignore contrasts defined for covariates in the input data set. This is fixed now.
9-
- Previously, `predict` will always require the response to be valid, even for unconditional predictions. This is fixed now and unconditional prediction do not require the response to be valid anymore.
105
- When running with `TMB` package versions below 1.9.15, MMRM fit results are not completely reproducible. While this may not be relevant for most applications, because the numerical differences are very small, we now issue a warning to the user if this is the case. We advise users to upgrade their `TMB` package versions to 1.9.15 or higher to ensure reproducibility.
6+
- Previously, `mmrm` ignored contrasts defined for covariates in the input data set. This is fixed now.
7+
- Previously, `predict` always required the response to be valid, even for unconditional predictions. This is fixed now and unconditional prediction does not require the response to be valid or present any longer.
8+
- `model.frame` has been updated to ensure that the `na.action` works correctly.
9+
- Previously `emmeans::emmeans` returned `NA` for spatial covariance structures. This is fixed now.
10+
- Previously `car::Anova` gave incorrect results if an interaction term is included and the covariate of interest was not the first categorical variable. This is fixed now.
11+
- Previously `car::Anova` failed if the model did not contain an intercept. This is fixed now.
1112

1213
### Miscellaneous
1314

1415
- Upon fitting an MMRM, it is checked whether a not reproducible optimization feature of `TMB` is turned on. If so, a warning is issued to the user once per session.
15-
- `model.matrix` is updated to ensure that the `NA` values are dropped. Additionally, an argument `use_response` is added to decide whether records with `NA` values in the response should be discarded.
16-
- `model.frame` is updated to ensure that the `na.action` works.
17-
- `predict` is updated to allow duplicated subject IDs for unconditional prediction.
1816
- `mmrm` now checks on the positive definiteness of the covariance matrix `theta_vcov`. If it is not positive definite, non-convergence is messaged appropriately.
17+
- `model.matrix` has been updated to ensure that the `NA` values are dropped. Additionally, an argument `use_response` is added to decide whether records with `NA` values in the response should be discarded.
18+
- `predict` has been updated to allow duplicated subject IDs for unconditional prediction.
1919

2020
# mmrm 0.3.12
2121

R/component.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Component Access for `mmrm_tmb` Objects
22
#'
3-
#' @description `r lifecycle::badge("experimental")`
3+
#' @description `r lifecycle::badge("stable")`
44
#'
55
#' @param object (`mmrm_tmb`)\cr the fitted MMRM.
66
#' @param name (`character`)\cr the component(s) to be retrieved.

R/cov_struct.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ COV_TYPES <- local({ # nolint
4747

4848
#' Covariance Types
4949
#'
50-
#' @description `r lifecycle::badge("maturing")`
50+
#' @description `r lifecycle::badge("stable")`
5151
#'
5252
#' @param form (`character`)\cr covariance structure type name form. One or
5353
#' more of `"name"`, `"abbr"` (abbreviation), or `"habbr"` (heterogeneous
@@ -207,7 +207,7 @@ tmb_cov_type <- function(cov) {
207207

208208
#' Define a Covariance Structure
209209
#'
210-
#' @description `r lifecycle::badge("maturing")`
210+
#' @description `r lifecycle::badge("stable")`
211211
#'
212212
#' @param type (`string`)\cr the name of the covariance structure type to use.
213213
#' For available options, see `cov_types()`. If a type abbreviation is used
@@ -359,7 +359,7 @@ print.cov_struct <- function(x, ...) {
359359

360360
#' Coerce into a Covariance Structure Definition
361361
#'
362-
#' @description `r lifecycle::badge("maturing")`
362+
#' @description `r lifecycle::badge("stable")`
363363
#'
364364
#' @details
365365
#' A covariance structure can be parsed from a model definition formula or call.

R/data.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#' Example Data on FEV1
44
#'
5-
#' @description `r lifecycle::badge("experimental")`
5+
#' @description `r lifecycle::badge("stable")`
66
#'
77
#' @note Measurements of FEV1 (forced expired volume in one second) is a measure
88
#' of how quickly the lungs can be emptied. Low levels of FEV1 may indicate
@@ -27,7 +27,7 @@
2727

2828
#' Example Data on BCVA
2929
#'
30-
#' @description `r lifecycle::badge("experimental")`
30+
#' @description `r lifecycle::badge("stable")`
3131
#'
3232
#' @note Measurements of BCVA (best corrected visual acuity) is a measure of how
3333
#' how many letters a person can read off of an eye chart using corrective
@@ -47,7 +47,7 @@
4747

4848
#' Cache Data for `mmrm` Model Comparison
4949
#'
50-
#' @description `r lifecycle::badge("experimental")`
50+
#' @description `r lifecycle::badge("stable")`
5151
#'
5252
#' @note The cached data for comparison is used for the vignettes generation.
5353
#' Please make sure that this data is refreshed before each package release

R/fit.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Fitting an MMRM with Single Optimizer
22
#'
3-
#' @description `r lifecycle::badge("experimental")`
3+
#' @description `r lifecycle::badge("stable")`
44
#'
55
#' This function helps to fit an MMRM using `TMB` with a single optimizer,
66
#' while capturing messages and warnings.
@@ -127,7 +127,7 @@ h_summarize_all_fits <- function(all_fits) {
127127

128128
#' Refitting MMRM with Multiple Optimizers
129129
#'
130-
#' @description `r lifecycle::badge("experimental")`
130+
#' @description `r lifecycle::badge("stable")`
131131
#'
132132
#' @param fit (`mmrm_fit`)\cr original model fit from [fit_single_optimizer()].
133133
#' @param ... Additional arguments passed to [mmrm_control()].
@@ -194,7 +194,7 @@ refit_multiple_optimizers <- function(fit,
194194

195195
#' Control Parameters for Fitting an MMRM
196196
#'
197-
#' @description `r lifecycle::badge("experimental")`
197+
#' @description `r lifecycle::badge("stable")`
198198
#' Fine-grained specification of the MMRM fit details is possible using this
199199
#' control function.
200200
#'
@@ -313,7 +313,7 @@ mmrm_control <- function(n_cores = 1L,
313313

314314
#' Fit an MMRM
315315
#'
316-
#' @description `r lifecycle::badge("experimental")`
316+
#' @description `r lifecycle::badge("stable")`
317317
#'
318318
#' This is the main function fitting the MMRM.
319319
#'

R/interop-emmeans.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Support for `emmeans`
22
#'
3-
#' @description `r lifecycle::badge("experimental")`
3+
#' @description `r lifecycle::badge("stable")`
44
#'
55
#' This package includes methods that allow `mmrm` objects to be used
66
#' with the `emmeans` package. `emmeans` computes estimated marginal means

R/mmrm-methods.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Methods for `mmrm` Objects
22
#'
3-
#' @description `r lifecycle::badge("experimental")`
3+
#' @description `r lifecycle::badge("stable")`
44
#'
55
#' @param object (`mmrm`)\cr the fitted MMRM including Jacobian and call etc.
66
#' @param ... not used.

R/mmrm-package.R

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,8 @@
88
#' @useDynLib mmrm, .registration = TRUE
99
#' @importFrom Rcpp evalCpp
1010
#' @import checkmate
11-
#' @importFrom lifecycle deprecated
12-
#' @importFrom Matrix .bdiag
1311
#' @importFrom methods is
14-
#' @importFrom stats acf
15-
#' @importFrom stringr boundary
16-
#' @importFrom parallel clusterApply
1712
#' @importFrom Rdpack reprompt
18-
#' @importFrom utils modifyList
19-
#' @importFrom tibble as_tibble
2013
NULL
2114

2215
#' @importFrom generics tidy

0 commit comments

Comments
 (0)