parseGroupFormula {doBy} | R Documentation |
Extract components from a formula with "conditioning bar"
Description
Extract components from a formula with the form
y ~ x1 + ... + xn | g1 + ... + gm
Usage
parseGroupFormula(form)
Arguments
form |
A formula of the form |
Value
If the formula is y ~ x1 + x2 | g1 + g2
the result is
model |
|
groups |
|
groupFormula |
|
Author(s)
Søren Højsgaard, sorenh@math.aau.dk
Examples
gf1 <- parseGroupFormula(y ~ x1 + x2 | g1 + g2)
gf1
gf2 <- parseGroupFormula( ~ x1 + x2 | g1 + g2)
gf2
[Package doBy version 4.7.0 Index]