Learn R Programming

bmm (version 1.0.1)

restructure.bmmfit: Restructure Old bmmfit Objects

Description

Restructure old bmmfit objects to work with the latest bmm version. This function is called internally when applying post-processing methods.

Usage

# S3 method for bmmfit
restructure(x, ...)

Value

A bmmfit object compatible with the latest version of bmm and brms.

Arguments

x

An object of class bmmfit.

...

Currently ignored.

Examples

Run this code
if (FALSE) { # file.exists("bmmfit_old.rds")
# Load an old bmmfit object
old_fit <- readRDS("bmmfit_old.rds")
new_fit <- restructure(old_fit)
}

Run the code above in your browser using DataLab