secuTrialdata
objectsR/return_scores.R
return_scores.Rd
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.
return_scores(x)
a secuTrialdata
object
a data.frame (columns: name, itemtype, label) that pinpoints which items are scores/calculated.
# 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)
#> Read export successfully.
#> The following export options deviate from the suggested specifications:
#> Data from hidden fields is part of the export.
#> Short names was not selected.
# return scores
return_scores(sT_export)
#> name itemtype label
#> 1 age Years y (calculated only) Age