Learn R Programming

pense (version 2.2.2)

mloc: Compute the M-estimate of Location

Description

Compute the M-estimate of location using an auxiliary estimate of the scale.

Usage

mloc(x, scale, rho, cc, opts = mscale_algorithm_options())

Value

a single numeric value, the M-estimate of location.

Arguments

x

numeric values. Missing values are verbosely ignored.

scale

scale of the x values. If omitted, uses the mad().

rho

the \(\rho\) function to use. See rho_function() for available functions.

cc

value of the tuning constant for the chosen \(\rho\) function. By default, chosen to achieve 95% efficiency under the Normal distribution.

opts

a list of options for the M-estimating algorithm, see mscale_algorithm_options() for details.

See Also

Other functions to compute robust estimates of location and scale: mlocscale(), mscale(), tau_size()