Learn R Programming

pickgene (version 1.44.0)

robustscale: 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

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

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.

See Also

mad, smooth.spline

Examples

Run this code
## Not run: 
# robustscale(y,x)
# ## End(Not run)

Run the code above in your browser using DataLab