Skip to contents

Assigns signs to prior weights to obtain prior coefficients

Usage

.signdisc(y, X, prior, family, foldid = NULL, nfolds = 10, track = FALSE)

Arguments

y

target: vector of length \(n\) (see family)

X

features: matrix with \(n\) rows (samples) and \(p\) columns (features)

prior

prior coefficients: matrix with \(p\) rows (features) and \(k\) columns (sources of co-data)

family

character "gaussian" (\(y\): real numbers), "binomial" (\(y\): 0s and 1s), or "poisson" (\(y\): non-negative integers);

foldid

fold identifiers: vector of length \(n\) with entries from 1 to `nfolds`

nfolds

number of folds: positive integer

track

show intermediate output (messages and plots): logical