groupQuants: Group Quantiles

Description Usage Arguments Value Author(s) See Also Examples

View source: R/groupQuants.R

Description

Calculates the specified quantiles for each group

Usage

1
  groupQuants(variables, group, prob, na.rm = FALSE)

Arguments

variables

matrix or data frame with explanatory variables (may contain missing values)

group

vector or factor with group memberships

prob

probability value (numeric value between 0 and 1)

na.rm

logical indicating whether missing values should be removed

Value

matrix of group quantiles (with variables in the rows, and groups in the columns)

Author(s)

Gaston Sanchez

See Also

groupMeans, groupVars, groupStds, groupMedians

Examples

1
2
3
4
5
6
7
8
## Not run: 
  # dataset iris
  data(iris)

  # group quantile prob=20
  groupQuants(iris[,1:4], iris[,5], prob=0.20)
  
## End(Not run)

DiscriMiner documentation built on May 1, 2019, 10:32 p.m.