score_single_psqi_row: Score a single PSQI questionnaire

View source: R/score_psqi.R

score_single_psqi_rowR Documentation

Score a single PSQI questionnaire

Description

Score a single PSQI questionnaire

Usage

score_single_psqi_row(psqi_data)

Arguments

psqi_data

A row of PSQI data (see details)

Details

The vector of PSQI items must have the following names: PSQI_1_1_TEXT, PSQI_1_2_TEXT, PSQI_2_1_TEXT, PSQI_2_2_TEXT, PSQI_3_1_TEXT, PSQI_3_2_TEXT, PSQI_4_1_TEXT, PSQI_4_2_TEXT, PSQI_5_a, PSQI_5_b, PSQI_5_c, PSQI_5_d, PSQI_5_e, PSQI_5_f, PSQI_5_g, PSQI_5_h, PSQI_5_i, PSQI_6, PSQI_7, PSQI_8, PSQI_9

Value

A data frame with columns named scored_scale, score, n_items, n_missing, method.


jflournoy/scorequaltrics documentation built on April 29, 2022, 9:17 p.m.