deparseCond: Analyze formula with conditional variables

deparseCondR Documentation

Analyze formula with conditional variables

Description

Check if formula is valid and, if it contains a | character, idenitfy regressors and conditional variables

Usage

deparseCond(formula)

Arguments

formula

A model formula, possibly containing a | character that introduces terms describing conditions

Value

Returns the formula with the following attributes:

y

"vertical" (response) variable(s)

x

"horizontal" (regressor) variable(s)

a

(first) conditional variable, if any

b

second conditional variable, if any

Note

This function is typically used for conditional plots and mixed models

Author(s)

Werner A. Stahel

Examples

  deparseCond(yy ~ xx)
  deparseCond(yy ~ xx | aa + bb)
  deparseCond(y1 + y2 ~ x1 + log(x2) | sqrt(quantity))

  plyx(Sepal.Width~Sepal.Length | Species, data=iris)

plgraphics documentation built on Oct. 19, 2023, 3 p.m.