Description Usage Arguments Value Examples
A function to compute the means for each participant in a certain questionnaire. Any questionnaire contains a table that indicates which items belong to which scale and which items are recoded. This table can be inserted into the function via the argument scales
.
1 2 | codeScales(data, scales, recode = TRUE, valid.values = NULL,
return.both = FALSE)
|
data |
A data frame that contains only the values of the questionnaire. |
scales |
A character vector that indicates which items belong to which scale |
recode |
Logical. Should the values be recoded automatically? Default is to |
valid.values |
Vector of numeric values that are valid for the questionnaire, i. e. the numeric transformation of the likert scale. |
return.both |
Logical. Should the original data frame and the new scales be returned? Defaul is ti |
A data frame wich contains the scored scales of the questionnaire used.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.