Learn R Programming

gRim (version 0.2.1)

parse_gm_formula: Parse graphical model formula

Description

Parse graphical model formula to internal representation

Usage

parse_gm_formula(formula, varnames, marginal = NULL, interactions = NULL)

Arguments

formula

A right hand sided formula or a list.

varnames

Specification of the variables.

marginal

Possible specification of marginal (a set of variables); useful in connection with model specification shortcuts.

interactions

The maximum order of interactions allowed; useful in connection with model specification shortcuts.