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

midhinge

Midhinge


Description

Compute the midhinge of a numeric vector x, defined as the average of the first and third quartiles.

Usage

midhinge(x, na_rm = FALSE, ...)

Arguments

x

numeric. A numeric vector.

na_rm

logical. Should missing values be removed before computing the midhinge?

...

Additional arguments to be passed to quantile().

Value

A numeric value, the midhinge.

References


statip

Statistical Functions for Probability Distributions and Regression

v0.2.3
GPL-3
Authors
Paul Poncet [aut, cre], The R Core Team [aut, cph] (C function 'BinDist' copied from package 'stats'), The R Foundation [cph] (C function 'BinDist' copied from package 'stats'), Adrian Baddeley [ctb] (C function 'BinDist' copied from package 'stats')
Initial release

We don't support your browser anymore

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