wcr(y, xfuncs, min.scale, nfeatures, ncomp, method = c("pcr", "pls"),
mean.signal.term = FALSE, covt = NULL, filter.number = 10,
wavelet.family = "DaubLeAsymm", family = "gaussian", cv1 = FALSE, nfold = 5,
nsplit = 1, store.cv = FALSE, store.glm = FALSE, seed = NULL)
y
and $d$ is the number of sites at which each signal is defined. For 2D predictors, an $n \times d \times d$ array comprising $n$ images y
: either a scalar, or a vector of values to be compared.method="pcr"
) or PLS components (if method="pls"
): either a scalar, or a vector of values to be compared.pcr
" (principal component regression) (the default) or "pls
" (partial least squares).FALSE
."gaussian"
(the default) and "binomial"
.min.scale
, nfeatures
and ncomp
? By default, FALSE
. Note that whenever multiple nfold
validation sets; CV is computed by averaging over these splits.glm
?seed = NULL
, a random seed is used."wcr"
. This is a list that, if store.glm = TRUE
, includes all components of the fitted glm
object. The following components are included even if store.glm = FALSE
:param.coef
.min.scale
, nfeatures
and ncomp
chosen by CV.min.scale
, nfeatures
and ncomp
, if store.cv = TRUE
; otherwise, the CV criterion only for the optimized combination of these parameters. Set to NULL
if CV is not performed.store.cv = TRUE
, the standard error of the CV estimate for each combination of min.scale
, nfeatures
and ncomp
.nfeatures
wavelet coefficients having the highest variance (for PCR; cf. Johnstone and Lu, 2009) or highest covariance with y
(for PLS); (3) regressing y
on the leading ncomp
PCs or PLS components, along with any scalar covariates; and (4) applying the inverse DWT to the result to obtain the coefficient function estimate fhat
.This function supports only the standard DWT (see argument type
in wd
) with periodic boundary handling (see argument bc
in wd
).
For 2D predictors, setting min.scale=1
will lead to an error, due to a technical detail regarding imwd
. Please contact the author if a workaround is needed.
See the Details for fpcr
in refund
for a note regarding decorrelation.
Reiss, P. T., Huo, L., Zhao, Y., Kelly, C., and Ogden, R. T. (2014). Wavelet-domain regression and predictive inference in psychiatric neuroimaging. Available at
wnet