powered by
Check if formula is valid and, if it contains a | character, idenitfy regressors and conditional variables
formula
|
deparseCond(formula)
Returns the formula with the following attributes:
"vertical" (response) variable(s)
"horizontal" (regressor) variable(s)
(first) conditional variable, if any
second conditional variable, if any
A model formula, possibly containing a | character that introduces terms describing conditions
Werner A. Stahel
deparseCond(yy ~ xx) deparseCond(yy ~ xx | aa + bb) deparseCond(y1 + y2 ~ x1 + log(x2) | sqrt(quantity)) plyx(Sepal.Width~Sepal.Length | Species, data=iris)
Run the code above in your browser using DataLab