Description Usage Arguments Details Value References See Also
View source: R/flagging_plots.R
flagging_plots
returns grouping of histograms of Time to Complete per assessment, Time per Item per assessment, Standard Deviation of item response per assessment, and Longstring.
1 2 3 4 5 6 7 8 9 | flagging_plots(
data,
ttc.colnames,
number.items,
item.colnames,
ttc.plotx.max,
sd.plotx.max,
longstring.plotx.max
)
|
data |
dataframe to be analyzed. |
ttc.colnames |
vector of column names of "Start Time" and "End Time" to calculate time to complete, also can be "Completion Time" if already calculated. |
number.items |
numeric of item responses per assessment |
item.colnames |
vector of column names of all items/questions to be used to calculate item score Standard Deviation and Longstring responses. |
ttc.plotx.max |
numeric that will set the upper limit of the x-axis of Time to Complete histogram, default is 100. |
sd.plotx.max |
numeric that will set the upper limit of the x-axis of Standard Deviation histogram, default is 50. |
longstring.plotx.max |
numeric that will set the upper limit of the x-axis of Time to Complete histogram, default is 100. |
This function creates plots of Time to Complete, Time Per Item, Item Score Standard Deviation, and Longstring. The histograms can be used to determine cutoff values for Time to Complete, Time Per Item, or Item Score Standard Deviation. This also can help visualize the most reported scores.
The item "ttc.colnames"
must be the names of columns, corresponding to Start Time and End Time, ordered ttc.colnames = c("StartTime", "EndTime")
start time first, followed by end time. If the data includes assessment duration, then list the column name that corresponds with assessment completion: ttc.colnames = "SurveyDuration"
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.
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.
flagging_df
for the dataframe that was used for these histograms. longstringr
provides a dataframe of all the longstring values
The following functions once cutoff values have been determined: TPI_cutoff
, SD_cutoff
, Combined_cutoff
, and Combined_cutoff_percent
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.