Skip to contents

The object consists of 3 slots

Constructor for the S4 Screener object.

Usage

Screener(id, screener, parameters, logger = Logger(verbose = F))

Arguments

id

a name to identify the screener. If screening method is one of the supported by renoir, the constructor will automatically select a screener. See supported_screening_methods() for the supported methods.

screener

(optional) function to screen the data for features selection. Used if id is not one of the supported by renoir. If screener is provided it must conform to the renoir common interface, and must have the following formal arguments:

x

the input matrix, where rows are observations and columns are variables.

y

the response variable. Its number of rows must match the number of rows of x.

weights

priors of the observations

resp.type

the response type

observations

indices of observations to keep

...

additional arguments

The output must be a Screened object, where the slot score stores the feature scores with the same order as in x

parameters

list containing the parameters to fix for the chosen screening method

logger

a Logger

Details

Constructor for the S4 Screener object.

Slots

id

a name to identify the screener

screener

screener function

parameters

list containing the parameters for the chosen screening method

logger

a Logger

Author

Alessandro Barberis