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

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/yilin.R

Description

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

Usage

1
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

1
2
3
4
## Not run: 
robustscale(y,x)

## End(Not run)

pickgene documentation built on Nov. 8, 2020, 6:50 p.m.