summaryfunctions.fdsample: Generic summary functions

Description Usage Arguments Value See Also Examples

Description

Calculate summary functions (mean, median or quantiles) of the function values pointwise (for each argument value).

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'fdsample'
mean(x, ..., trim = 0, na.rm = FALSE)

## S3 method for class 'fdsample'
median(x, ..., na.rm = FALSE)

## S3 method for class 'fdsample'
quantile(x, probs = seq(0, 1, 0.25), ..., na.rm = FALSE,
  names = FALSE, type = 7)

Arguments

x

an object of class fdsample

...

further arguments passed to or from other methods.

trim

the fraction (0 to 0.5) of observations to be trimmed from each end of x before the mean is computed. Values of trim outside that range are taken as the nearest endpoint.

na.rm

logical; if true, any NA and NaN's are removed from x before the quantiles are computed.

probs

numeric vector of probabilities with values in [0,1].

names

logical; if true, the result has a names attribute.

type

an integer between 1 and 9 selecting one of the nine quantile algorithms, see the documentation of quantile.default

Value

an fdsample object, where fvals represents the values of the summary function(s)

See Also

mean, median. quantile

Examples

1

fdnonpar documentation built on May 2, 2019, 5:54 p.m.