Learn R Programming

qbrms (version 1.0.1)

import_model: Import Model Specification from JSON

Description

Import a previously exported model specification from JSON format.

Usage

import_model(file)

Value

A list containing the model specification components

Arguments

file

Character string specifying JSON file path

Examples

Run this code
if (FALSE) {
# Import model
spec <- import_model("my_model.json")

# Recreate model
fit <- qbrms(
  formula = as.formula(spec$model$formula),
  data = my_data,
  family = get(spec$model$family)()
)
}

Run the code above in your browser using DataLab