scoring_reg: Scoring the Skala zur Selbstregulation (REG) (engl....

Description Usage Arguments Details Value References Examples

View source: R/reg_de.R

Description

The REG is a 10-item Likert-type measure of the ability of self-regulation. Items are rated on a scale of 1 (completely disagree) to 4 (completely agree). A total sum score ranging from 10 to 40 may be calculated.

Usage

1
scoring_reg(data, items = 1:10, keep = TRUE, nvalid = 8, digits = NULL)

Arguments

data

a data.frame containing the REG items orderd from 1 to 10

items

A character vector with the REG item names ordered from 1 to 10, or a numeric vector indicating the column numbers of the REG items in data.

keep

Logical, whether to keep the single items and whether to return variables containing the number of non-missing items on each scale for each respondent. The default is TRUE.

nvalid

A numeric value indicating the number of non-missing items required for score calculations. The default is 8.

digits

Integer of length one: value to round to. No rounding by default.

Details

Value

The function returns 2 variables:

References

Examples

1
2
3
4
5
6
## Not run: 
library(dplyr)
items.reg <- paste0("REG_", seq(1, 10, 1))
scoring_reg(mydata, items = items.reg)

## End(Not run)

nrkoehler/qscorer documentation built on April 5, 2020, 3:09 a.m.