Last chance! 50% off unlimited learning
Sale ends in
loessByCol(y, x=NULL, span=0.5)
locfitByCol(y, x=NULL, weights=1, span=0.5, degree=0)
nrow(y)
, defaults to equally spaced.locfitByCol
returns a numeric matrix.
locfitByCol
uses the locfit.raw
function of the locfit
package.
loess
y <- matrix(rnorm(100*3), nrow=100, ncol=3)
head(y)
out <- loessByCol(y)
head(out$fitted.values)
Run the code above in your browser using DataLab