Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

group.STDERR

Group Standard Error Interval


Description

Calculates the standard error interval of grouped data.

Usage

group.STDERR(x, data)

Arguments

x

an 'aggregate' compatible formula

data

a data frame (or list) from which the variables in formula should be taken.

Value

A data frame consisting of one column for each grouping factor plus three columns for the upper bound, mean and lower bound of the standard error interval for each level of the grouping factor.

Examples

require(latticeExtra)
with(group.STDERR(weight~feed,chickwts),
 segplot(feed~weight.lower+weight.upper,center=weight.mean)
)

require(Hmisc)
with(group.STDERR(Temp~Month,airquality),
 xYplot(Cbind(Temp.mean,Temp.lower,Temp.upper)~numericScale(Month),type="b",ylim=c(60,90))
)

Rmisc

Rmisc: Ryan Miscellaneous

v1.5
GPL-3
Authors
Ryan M. Hope <rmh3093@gmail.com>
Initial release
2013-10-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.