robustscale {pickgene}R Documentation

Robust Estimation of Median (center) and MAD (scale)

Description

Smoothing spline estimate of median and mean absolute deviation (MAD).

Usage

robustscale(y, x, nslice=400, corcenter=TRUE, decrease=TRUE)

Arguments

y response
x predictor
nslice number of slices (should be "large")
corcenter correct for center
decrease force MAD to decrease with x

Details

This divides data into roughly many nslice slices and computes median and mean absolute deviation (mad) for each slice. These are then smoothed using smooth.spline.

Value

Data frame containing significant genes with the following information:

center estimate of center median
scale MAD estimate of scale
x ordered x values for plotting
y y sorted by x

Author(s)

Yi Lin

See Also

mad, smooth.spline

Examples

## Not run: 
robustscale(y,x)
## End(Not run)

[Package pickgene version 1.0.0 Index]