step_anova: A step_* method used in recipe to filter the features using...

Description Usage Arguments Value Examples

View source: R/step_anova.R

Description

A step_* method used in recipe to filter the features using independent sample t test

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
step_anova(
  recipe,
  ...,
  role = NA,
  trained = FALSE,
  ref_dist = NA,
  options = list(p_thresh = 0.05),
  skip = T,
  id = rand_id("anova")
)

Arguments

recipe

a recipe object

...

the selected features

role

see recipe description

trained

see recipe description

ref_dist

the selected feature names, you didn't need to assign

options

the options to run step_anova

skip

see recipe description

id

the id of this step

Value

a recipe object

Examples

1
2
3
4
5
data(cells)
cells <- mutate(cells) %>% select(-case)
colnames(cells)[1] <- 'Label'
a_rec <- recipe(Label~., data = cells) %>%
step_anova(all_predictors())

yzhizai/supprecipe documentation built on Dec. 23, 2021, 9:11 p.m.