PipeR: Calculate residual of polynomial fit

Description Usage Arguments Value Author(s) Examples

View source: R/PipeR.R

Description

Calculate residual of polynomial fit

Usage

1
PipeR(Data,Ndg=3,Method="Poly")

Arguments

Data

gene-by-sample matrix or isoform-by-sample matrix.It should be rescaled to values bwteen [-1,1].

Ndg

degree of polynomial.

Method

only polynomial fitting ("Poly") is available now.

Value

The function will fit polynomial curve to each row of the data. The output returns the MSE of each row (gene/isoform).

Author(s)

Ning Leng

Examples

1
2
3
4
aa <- sin(seq(0,1,.1))
bb <- sin(seq(0.5,1.5,.1))
cc <- sin(seq(0.9,1.9,.1))
res <- PipeR(rbind(aa,bb,cc))

Oscope documentation built on Nov. 17, 2017, 10:37 a.m.