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
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stat-summary.R
\name{mean_se}
\alias{mean_se}
\title{Calculate mean and standard error of the mean}
\usage{
mean_se(x, mult = 1)
}
\arguments{
\item{x}{numeric vector.}
\item{mult}{number of multiples of standard error.}
}
\value{
A data frame with three columns:
\describe{
\item{\code{y}}{ The mean.}
\item{\code{ymin}}{ The mean minus the multiples of the standard error.}
\item{\code{ymax}}{ The mean plus the multiples of the standard error.}
}
}
\description{
For use with \code{\link[=stat_summary]{stat_summary()}}
}
\examples{
set.seed(1)
x <- rnorm(100)
mean_se(x)
}
|