Skip to contents

Convenience wrapper around mfsusie() for the single-outcome case (M = 1). The response Y may be scalar (T = 1, susieR-degenerate path) or functional (T > 1, wavelet-basis path). Internally fsusie(Y, X, pos, ...) is equivalent to mfsusie(X, list(Y), list(pos), ...).

Usage

fsusie(Y, X, pos = NULL, ...)

Arguments

Y

numeric matrix n x T of functional responses on a regular position grid (or numeric vector for T = 1).

X

numeric matrix n x p of covariates.

pos

optional numeric vector of length T recording sampling positions. Defaults to seq_len(ncol(Y)).

...

forwarded to mfsusie(). See ?mfsusie for the full parameter set; arguments that only make sense in the multi-outcome case (currently just cross_outcome_prior) error out.

Value

a list of class c("mfsusie", "susie"). See ?mfsusie for the documented field set.

Details

Multi-outcome-only arguments (e.g. cross_outcome_prior) are rejected with an explicit error to keep the wrapper honest about its M = 1 scope.