SD_cutoff: Identification of Careless Response Using Standard Deviation

Description Usage Arguments Details Value References See Also

View source: R/SD_cutoff.R

Description

SD_cutoff returns dataframe of assessment flagged by Standard Deviation per assessment cutoff value.

Usage

1
SD_cutoff(data, cutoff, condition, item.colnames, ID.colname)

Arguments

data

dataframe to be analyzed.

cutoff

numeric cutoff value for Standard Deviation, 'default' value set to 5.

condition

character string of condition that is desired for comparison of data to SD cutoff value, i.e <, >=, etc. 'Default' logic set to "<=".

item.colnames

vector of column names of all items/questions to be used to calculate item score Standard Deviation and Longstring responses.

ID.colname

character string of column name for ID of assessment.

Details

This function creates the dataframe that includes the ID and index of assessments that met the cutoff criterion for Standard Deviation per assessment. If an assessment has a Standard Deviation less than or equal to the cutoff value, it will be flagged and placed in the dataframe.

Value

The item "item.colnames" must be the column names of all items to be included in the calculations for Item Score Standard Deviation. The base function colnames can be utilized if user prefers. If columns x through y are to be used for this calculation, the following syntax must be followed: item.colnames = colnames(data[,x:y]) Example of use with column names can bee seen below.

References

Jaso, B.A., Kraus, N.I., Heller, A.S. (2020) Identification of careless responding in ecological momentary assessment: from post-hoc analyses to real-time data monitoring.

See Also

TPI_cutoff for a similar function, using Time per Item rather than Standard Deviation.

Perc_Mode_cutoff for a similar function, using Percent of Items at Mode rather than Standard Deviation.

See the following functions for more information on Careless Response Identification in EMA: flagging_df, flagging_plots, longstringr, Combined_cutoff, and Combined_cutoff_percent


manateelab/EMAeval-R-Package documentation built on Oct. 13, 2021, 6:48 a.m.