Skip to contents

Extract the Bayesian information criterion (BIC) of a progression model for repeated measures (PMRM).

Usage

# S3 method for class 'pmrm_fit'
BIC(object, ..., k = NULL)

Arguments

object

A fitted model object of class "pmrm_fit".

...

Not used.

k

Not used. Must be NULL

Value

Numeric scalar, the Bayesian information criterion (BIC) of the fitted model.

Examples

  set.seed(0L)
  simulation <- pmrm_simulate_decline_proportional(
    visit_times = seq_len(5L) - 1,
    gamma = c(1, 2)
  )
  fit <- pmrm_model_decline_proportional(
    data = simulation,
    outcome = "y",
    time = "t",
    patient = "patient",
    visit = "visit",
    arm = "arm",
    covariates = ~ w_1 + w_2
  )
  BIC(fit)
#> [1] 4404.364