mmrm0.3.14 package

Mixed Models for Repeated Measures

Anova.mmrm

Conduct type II/III hypothesis testing on the MMRM fit results.

as.cov_struct

Coerce into a Covariance Structure Definition

car_add_mmrm

Register mmrm For Use With car::Anova

check_package_version

Check Suggested Dependency Against Version Requirements

component

Component Access for mmrm_tmb Objects

cov_struct

Define a Covariance Structure

cov_type_abbr

Retrieve Associated Abbreviated Covariance Structure Type Name

cov_type_name

Retrieve Associated Full Covariance Structure Type Name

COV_TYPES

Covariance Type Database

covariance_types

Covariance Types

df_1d

Calculation of Degrees of Freedom for One-Dimensional Contrast

df_md

Calculation of Degrees of Freedom for Multi-Dimensional Contrast

drop_elements

Drop Items from an Indexible

emit_tidymodels_register_msg

Format a Message to Emit When Tidymodels is Loaded

emmeans_support

Support for emmeans

emp_start

Empirical Starting Value

fill_names

Complete character Vector Names From Values

fit_mmrm

Low-Level Fitting Function for MMRM

fit_single_optimizer

Fitting an MMRM with Single Optimizer

flat_expr

Flatten Expressions for Non-standard Evaluation

format_symbols

Format Symbol Objects

format.cov_struct

Format Covariance Structure Object

formula_rhs

Extract Right-Hand-Side (rhs) from Formula

h_add_covariance_terms

Add Individual Covariance Variables As Terms to Formula

h_add_terms

Add Formula Terms with Character

h_coef_table

Coefficients Table for MMRM Fit

h_confirm_large_levels

Ask for Confirmation on Large Visit Levels

h_construct_model_frame_inputs

Construction of Model Frame Formula and Data Inputs

h_default_value

Default Value on NULL Return default value when first argument is NULL...

h_df_1d_bw

Calculation of Between-Within Degrees of Freedom for One-Dimensional C...

h_df_1d_kr

Calculation of Kenward-Roger Degrees of Freedom for One-Dimensional Co...

h_df_1d_res

Calculation of Residual Degrees of Freedom for One-Dimensional Contras...

h_df_1d_sat

Calculation of Satterthwaite Degrees of Freedom for One-Dimensional Co...

h_df_bw_calc

Calculation of Between-Within Degrees of Freedom

h_df_md_bw

Calculation of Between-Within Degrees of Freedom for Multi-Dimensional...

h_df_md_from_1d

Creating F-Statistic Results from One-Dimensional Contrast

h_df_md_kr

Calculation of Kenward-Roger Degrees of Freedom for Multi-Dimensional ...

h_df_md_res

Calculation of Residual Degrees of Freedom for Multi-Dimensional Contr...

h_df_md_sat

Calculation of Satterthwaite Degrees of Freedom for Multi-Dimensional ...

h_df_min_bw

Assign Minimum Degrees of Freedom Given Involved Coefficients

h_df_to_tibble

Coerce a Data Frame to a tibble

h_drop_covariance_terms

Drop Formula Terms used for Covariance Structure Definition

h_drop_levels

Drop Levels from Dataset

h_extra_levels

Check if a Factor Should Drop Levels

h_extract_covariance_terms

Extract Formula Terms used for Covariance Structure Definition

h_first_contain_categorical

Check if the Effect is the First Categorical Effect

h_get_contrast

Obtain Contrast for Specified Effect

h_get_cov_default

Obtain Default Covariance Method

h_get_empirical

Obtain Empirical/Jackknife/Bias-Reduced Covariance

h_get_index

Test if the First Vector is Subset of the Second Vector

h_get_kr_comp

Obtain Kenward-Roger Adjustment Components

h_get_na_action

Obtain na.action as Function

h_get_optimizers

Obtain Optimizer according to Optimizer String Value

h_get_prediction_variance

Get Prediction Variance

h_get_prediction

Get Prediction

h_get_sim_per_subj

Get simulated values by patient.

h_get_theta_from_cov

Obtain Theta from Covariance Matrix

h_gradient

Computation of a Gradient Given Jacobian and Contrast Vector

h_jac_list

Obtain List of Jacobian Matrix Entries for Covariance Matrix

h_kr_df

Obtain the Adjusted Kenward-Roger degrees of freedom

h_md_denom_df

Calculating Denominator Degrees of Freedom for the Multi-Dimensional C...

h_mmrm_tmb_assert_start

Asserting Sane Start Values for TMB Fit

h_mmrm_tmb_check_conv

Checking the TMB Optimization Result

h_mmrm_tmb_data

Data for TMB Fit

h_mmrm_tmb_extract_cov

Extract covariance matrix from TMB report and input data

h_mmrm_tmb_fit

Build TMB Fit Result List

h_mmrm_tmb_formula_parts

Processing the Formula for TMB Fit

h_mmrm_tmb_parameters

Start Parameters for TMB Fit

h_newdata_add_pred

Add Prediction Results to New Data

h_obtain_lvls

Obtain Levels Prior and Posterior

h_optimizer_fun

Obtain Optimizer Function with Character

h_partial_fun_args

Create Partial Functions

h_print_aic_list

Printing AIC and other Model Fit Criteria

h_print_call

Printing MMRM Function Call

h_print_cov

Printing MMRM Covariance Type

h_quad_form

Quadratic Form Calculations

h_reconcile_cov_struct

Reconcile Possible Covariance Structure Inputs

h_record_all_output

Capture all Output

h_register_s3

Register S3 Method Register S3 method to a generic.

h_residuals_normalized

Calculate normalized residuals

h_residuals_pearson

Calculate Pearson Residuals

h_residuals_response

Calculate response residuals.

h_split_control

Split Control List

h_summarize_all_fits

Summarizing List of Fits

h_tbl_confint_terms

Extract tibble with Confidence Intervals and Term Names

h_test_1d

Creating T-Statistic Test Results For One-Dimensional Contrast

h_test_md

Creating F-Statistic Test Results For Multi-Dimensional Contrast

h_tmb_warn_non_deterministic

Warn if TMB is Configured to Use Non-Deterministic Hash for Tape Optim...

h_tr

Trace of a Matrix

h_valid_formula

Validate mmrm Formula

h_var_adj

Obtain the Adjusted Covariance Matrix

h_warn_na_action

Warn on na.action

h_within_or_between

Determine Within or Between for each Design Matrix Column

is_infix

Test Whether a Symbol is an Infix Operator

mmrm_control

Control Parameters for Fitting an MMRM

mmrm_methods

Methods for mmrm Objects

mmrm_tidiers

Tidying Methods for mmrm Objects

mmrm_tmb_methods

Methods for mmrm_tmb Objects

mmrm-package

mmrm Package

mmrm

Fit an MMRM

parsnip_add_mmrm

Register mmrm For Use With tidymodels

position_symbol

Search For the Position of a Symbol

print.cov_struct

Print a Covariance Structure Object

reexports

Objects exported from other packages

refit_multiple_optimizers

Refitting MMRM with Multiple Optimizers

register_on_load

Helper Function for Registering Functionality With Suggests Packages

std_start

Standard Starting Value

tmb_cov_type

Produce A Covariance Identifier Passing to TMB

validate_cov_struct

Validate Covariance Structure Data

Mixed models for repeated measures (MMRM) are a popular choice for analyzing longitudinal continuous outcomes in randomized clinical trials and beyond; see Cnaan, Laird and Slasor (1997) <doi:10.1002/(SICI)1097-0258(19971030)16:20%3C2349::AID-SIM667%3E3.0.CO;2-E> for a tutorial and Mallinckrodt, Lane, Schnell, Peng and Mancuso (2008) <doi:10.1177/009286150804200402> for a review. This package implements MMRM based on the marginal linear model without random effects using Template Model Builder ('TMB') which enables fast and robust model fitting. Users can specify a variety of covariance matrices, weight observations, fit models with restricted or standard maximum likelihood inference, perform hypothesis testing with Satterthwaite or Kenward-Roger adjustment, and extract least square means estimates by using 'emmeans'.

  • Maintainer: Daniel Sabanes Bove
  • License: Apache License 2.0
  • Last published: 2024-09-27