clean.sd: A function to remove extreme RT

Description Usage Arguments

View source: R/clean.sd.R

Description

This function creates a new vector called clean.val containing the RT without the extremes values. Values are defined as extreme when higer than a certain number of standard deviations from the mean of each subject individually Once the function finished running, simply attribute the clean.val vector to your data frame under the form: my_data$my_clean_RT_variable <- clean.val.

Usage

1
clean.sd(df.var.val, df.var.group = "none", n.sd, data, fill = NA)

Arguments

df.var.val

Dataframe$column containing the RT

df.var.group

Dataframe$column containing the groupping variable for example the age groups. If your experiment does not include groups, set this argument to "none". Default is "none"

n.sd

Number of standard deviations above the mean where to cut

data

Name of the dataframe containing the data

fill

Value to replace the extreme values by. The default is NA


EricMenetre/NPL documentation built on June 23, 2021, 2:10 p.m.