View source: R/GridProcessing.R
create_grid_score | R Documentation |
For each item and respondent, creates scores equivalent to a Likert-type scale out of LimeSurvey formatted grid item data.
create_grid_score( x, gridinfo, b = (uni.min - uni.max)/16, uni.min = 1, uni.max = 9, reverse_code = NULL, subset = NULL, prefix = "conv_uni_", classify_response = FALSE )
x |
data frame of grid-only LimeSurvey formatted data. |
gridinfo |
list. The output of |
b |
a parameter between -1 and 0, default is a value satisfying Audrezet's (2016) six constraints. |
uni.min, uni.max |
integers specifying the minimum and maximum value for the unidimensional (Likert-type) mapping. Default is a 9-point scale. |
reverse_code |
a vector indicating which grids are reverse-coded. |
subset |
a vector indiciating which items to include. By default (NULL) items are used. |
prefix |
a string which is the prefix used for column names for the converted score data frame. a value of 0 means not reverse coded; a value of 1 means reverse coded. |
classify_response |
Logical indicating if Positive (P), Negative (N), Indifferent (I), or Ambivalent (A) should be returned instead of a numeric value computed with S(i,j). Default is FALSE. |
A data frame in which the grid scores for each respondent have been converted to values equivalent to those on Likert-type scale.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.