% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{getGroups}
\alias{getGroups}
\title{Determine groups and group means}
\usage{
getGroups(x, n = NULL, equidistant = FALSE)
}
\arguments{
\item{x}{The continuous variable to be split}

\item{n}{The number of groups; if NULL then the function determines a number
of groups with usually 100 cases or 3 <= n <= 20.}

\item{equidistant}{If set to TRUE, builds equidistant interval, otherwise (default)
with equal number of observations}
}
\value{
vector with group means for each observation
}
\description{
Helps to split the continuous explanatory variable into groups and assigns
the group mean. The groups can be split either into groups of equal size (default)
or equal number of observations.
}
\examples{
\dontrun{
x <- rnorm(1000, m = 50, sd = 10)
m <- getGroups(x, n = 10)
}

}
