Skip to contents

Extract the test labels or response variable from an object.

Usage

y_test(obj)

# S3 method for class 'mvpa_design'
y_test(obj)

# S3 method for class 'mvpa_model'
y_test(obj)

Arguments

obj

The object from which to extract the test response variable.

Examples

ds <- gen_sample_dataset(D = c(4, 4, 4), nobs = 10, external_test = TRUE)
#> external test
y_test(ds$design)
#>  [1] b e d c e b a d c a
#> Levels: a b c d e