Learn R Programming

JointAI (version 1.1.0)

split_formula_list: Split a list of formulas into fixed and random effects parts.

Description

Calls extract_fixef_formula() and extract_ranef_formula() on each formula in a list to create one list of the fixed effects formulas and one list containing the random effects formulas.

Usage

split_formula_list(formula)

Value

A list with two elements, fixed and random, each of which is a named list of formula objects (or NULL)

Arguments

formula

a formula or a list of formula objects

Details

Internal function, used in *_imp() (2022-02-06)