smooth.spline.pi0 {swfdr}R Documentation

Fit smoothing splines to several curves

Description

This implementation uses smooth.spline. It gives a slight optimization by not reporting original data (keep.data=FALSE) and by setting numeric tolerance to a fixed number (tol=1e-7). In the latter, the precise number does not matter, but it is important that it is not computed from x at each iteration in the loop.

Usage

smooth.spline.pi0(x, ymat, df = 3)

Arguments

x

numeric vector, position of knots

ymat

numeric matrix, ncol(ymat) should match length(x)

Value

list with components pi0.smooth and pi0


[Package swfdr version 1.12.0 Index]