R/README.md

score_pds

This scores the PDS in accordance with the method alluded to in Shirtcliff, Dahl, and Pollak (2009).

Getting started

You will need to install this package by running...

install.packages("devtools")
devtools::install_github("jflournoy/qualtrics")

Set up

Label variables

The script expects the item names to vary by gender, with all variables for females starting with "F", and all variables for males starting with "M".

The survey abbreviation (PDS) is also expected to be a part of the item name. Variables can be in the format "PDS_F1" or "F1_PDS."

Item name| Corresponding question ----|--- F1 or M1| 'growth in height' F2 or M2| 'growth of body hair' F3 or M3| 'noticed skin changes' F4 or M4| females: 'breasts begun to grow', males: 'deepening of voice'

For males only:

Item name| Corresponding question ---|--- M5 | male: 'grew hair on face'

For females only:

Item name| Corresponding question ---|--- F6 | 'began to menstruate'*

Thus, each female participant should have a value for each of the following items: F1, F2, F3, F4, and F6. Meanwhile, male participants should have a value for each of the following items: M1, M2, M3, M4, M5.

Mixed or single-gender input data

Data format

Expected column title | Contents ---|--- SID| subject identification numbers item| names of items, formatted "PDS_F1" or "F1_PDS" (character) value | participant response (numeric) survey_name | "PDS" (character)

Deploying the script

score_pdss(long_survey_data_filtered, gender_mix='mf', gendercode=c(m=1,f=0))


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