return_scores: Returns the score (calculated) items from 'secuTrialdata'...

View source: R/return_scores.R

return_scoresR Documentation

Returns the score (calculated) items from secuTrialdata objects

Description

secuTrial allows to set up calculated fields (i.e. scores) that depend on other items. It is not suggested to use the scores calculated by secuTrial to perform reliable analyses. To this end, calling return_scores will return all items in the secuTrial export which are scores and should be manually recalculated before data analysis.

Usage

return_scores(x)

Arguments

x

a secuTrialdata object

Value

a data.frame (columns: name, itemtype, label) that pinpoints which items are scores/calculated.

Examples

# export location
expot_loc <- system.file("extdata", "sT_exports", "lnames",
                         "s_export_CSV-xls_CTU05_long_ref_miss_en_utf8.zip",
                         package = "secuTrialR")
# read export
sT_export <- read_secuTrial(expot_loc)

# return scores
return_scores(sT_export)


secuTrialR documentation built on March 7, 2023, 5:35 p.m.