SameDiscrim {TSEAL}R Documentation

Allows to select the same variables for a given StepDiscrim

Description

Allows to perform the same variable selection in a new MWA object starting from a MWA object with the variables already selected (it is advisable that the parameters of the MWA and of the selection are the same).

Usage

SameDiscrim(MWA, MWADiscrim)

Arguments

MWA

MultiWaveAnalysis object on which variables are to be selected.

MWADiscrim

MultiWaveAnalysis object on which certain variables have been previously selected, using StepDiscrim or StepDiscrimV

Value

An object of class MultiWaveAnalysis with the same variables selected as in the MWADiscrim object.

See Also

Examples


load(system.file("extdata/ECGExample.rda",package = "TSEAL"))
# We simulate that the second series has been obtained after
Series1 <- ECGExample[, , 1:9]
Series2 <- ECGExample[, , 10, drop = FALSE]
MWA <- MultiWaveAnalysis(Series1, "haar", features = c("var"))
MWADiscrim <- StepDiscrim(MWA, c(rep(1, 5), rep(2, 4)), 5,
  features = c("var")
)

MWA2 <- MultiWaveAnalysis(Series2, "haar", features = c("var"))
MWA2Discrim <- SameDiscrim(MWA2, MWADiscrim)
# At this point MWA2Discrim has the same variables that MWADiscrim
# and can be used in a pretrained model with MWADiscrim



[Package TSEAL version 0.1.3 Index]