smooth.spline.pi0 {swfdr} | R Documentation |
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.
smooth.spline.pi0(x, ymat, df = 3)
x |
numeric vector, position of knots |
ymat |
numeric matrix, ncol(ymat) should match length(x) |
list with components pi0.smooth and pi0