powered by
Extract components from a formula with the form y ~ x1 + ... + xn | g1 + ... + gm
y ~ x1 + ... + xn | g1 + ... + gm
parseGroupFormula(form)
If the formula is y ~ x1 + x2 | g1 + g2 the result is
y ~ x1 + x2 | g1 + g2
y ~ x1 + x2
g1 + g2
~ g1 + g2
A formula of the form y ~ x1 + ... + xn | g1 + ... + gm
Søren Højsgaard, sorenh@math.aau.dk
gf <- parseGroupFormula(y ~ x1 + x2 | g1 + g2) gf
Run the code above in your browser using DataLab