File: parseGroupFormula.Rd

package info (click to toggle)
r-cran-doby 4.7.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,400 kB
  • sloc: makefile: 2
file content (33 lines) | stat: -rwxr-xr-x 810 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/doby_utilities.R
\name{parseGroupFormula}
\alias{parseGroupFormula}
\title{Extract components from a formula with "conditioning bar"}
\usage{
parseGroupFormula(form)
}
\arguments{
\item{form}{A formula of the form \code{y ~ x1 + ... + xn | g1 + ... + gm}}
}
\value{
If the formula is \code{y ~ x1 + x2 | g1 + g2} the result is
\item{model}{\code{y ~ x1 + x2}} \item{groups}{\code{ g1 + g2}}
\item{groupFormula}{\code{~ g1 + g2}}
}
\description{
Extract components from a formula with the form
\code{y ~ x1 + ... + xn | g1 + ... + gm}
}
\examples{

gf1 <- parseGroupFormula(y ~ x1 + x2 | g1 + g2)
gf1

gf2 <- parseGroupFormula( ~ x1 + x2 | g1 + g2)
gf2

}
\author{
Søren Højsgaard, \email{sorenh@math.aau.dk}
}
\keyword{utilities}