create_grid_score: Form Likert-type Grid Scores

View source: R/GridProcessing.R

create_grid_scoreR Documentation

Form Likert-type Grid Scores

Description

For each item and respondent, creates scores equivalent to a Likert-type scale out of LimeSurvey formatted grid item data.

Usage

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
)

Arguments

x

data frame of grid-only LimeSurvey formatted data.

gridinfo

list. The output of grid_item_info.

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.

Value

A data frame in which the grid scores for each respondent have been converted to values equivalent to those on Likert-type scale.


douglaswhitaker/GridItemTools documentation built on Aug. 2, 2022, 4:32 a.m.