describe: Descriptive statistics

View source: R/variance_functions.R

describeR Documentation

Descriptive statistics

Description

describe constructs a named vector that contains various descriptive statistics of numeric data.

Usage

describe(x, confidence = 0.05, digits = 2)

Arguments

x

Numeric vector.

confidence

confidence level (default of 0.05) for resulting confidence interval calculation.

digits

integer (defaults to 2) specifying the number of significant digits for the resulting descriptive statistics

Value

A numeric vector containig the following information:

n

sample size

mean

mean

StDev

standard deviation

StErr

standard error of the mean

CI

confidence interval width

RSE

relative standard error

RMSE

root mean square deviation

MAE

mean absolute error

Examples

# Example
data(BSB)
describe(BSB$TL, digits = 4)
# Example 2
with(BSB, aggregate(TL ~ Age, FUN = describe, digits = 4))

ballengerj/FishyR documentation built on June 17, 2022, 10:33 p.m.