View source: R/fitMeanVarCurve.R
meanVarLocalFit | R Documentation |
meanVarLocalFit
fits a mean-variance curve by applying a robust,
gamma-family local regression.
meanVarLocalFit( x, y, weight, range.residual = c(1e-04, 15), max.iter = 50, args.lp = list(), args.locfit = list(), verbose = TRUE )
x, y |
Two numeric vectors of (sample) means and sample variances, respectively. |
weight |
An optional vector of weights to be used in the fitting
procedure. It's typically used when sample variances in |
range.residual |
A length-two vector specifying the range of residuals of non-outliers. |
max.iter |
Maximum number of iteration times allowed during the fitting procedure. |
args.lp |
A named list of extra arguments to |
args.locfit |
A named list of extra arguments to
|
verbose |
Whether to print processing messages about iteratively fitting the mean-variance curve? |
meanVarLocalFit
iteratively detects outliers and applies the local
regression procedure to non-outliers. The procedure converges as soon as the
set of outlier points fixes.
A prediction function which accepts a vector of means and returns the predicted variances.
Due to the internal implementation, the argument subset
to
locfit
mustn't be specified in args.locfit
.
meanVarParaFit
for parametrically fitting a
mean-variance curve; fitMeanVarCurve
for an interface to
modeling the mean-variance dependence on bioCond
objects;
plotMeanVarCurve
for plotting a mean-variance curve.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.