parse_formula: Parse a formula into its component parts.

View source: R/create_model_info.r

parse_formulaR Documentation

Parse a formula into its component parts.

Description

This internal function takes a formula and data, parses the various components of the formula, formats the data, and returns everything as a list.

Usage

parse_formula(formula, data)

Arguments

formula

A formula in the format 'outcome ~ variables + specials' with all special components.

data

The raw data that the formula will be run on.

Value

A list with the transformed formula, the transformed data (based on functions in the formula), original data, the originak formula, the response variables, the explanatory variables, the special components to add to the formula, the random effects, and the fixed effects.

See Also

Other model setup functions: determine_model(), identify_tve(), produce_model_function()


jacobaro/danalyze documentation built on Oct. 20, 2022, 8:09 a.m.