describe: Describe a variable depending on normality

View source: R/funciones.R

describeR Documentation

Describe a variable depending on normality

Description

Describe a variable depending on normality

Usage

describe(x, digits = 2, probs = c(0.25, 0.75), alpha = 0.05, na.rm = TRUE)

Arguments

x

variable to be described.

digits

decimal digits in the result.

probs

quantiles to be used in case of non normality.

alpha

significance level for testing normality (0.05 by default).

na.rm

Should missing values be considered?. If TRUE and there are missing values present, the funcion returns NA.

Value

Mean ± sd of variable if normal or Median and Interquartile range if not normal.

Examples

describe(rnorm(100))
describe(runif(100))

angeloSdP/reportingTools documentation built on Dec. 25, 2024, 11:19 a.m.