scoreSchaefer: A function that scores Schaefer et al.'s Empathy for Children...

Description Usage Arguments Value Examples

View source: R/scoreSchaefer.R

Description

Calculates scenario-, subscale-, and total-scores based on a data frame. Users specify first column with relevant data, and function seeks out the rest automatically.

Usage

1
scoreSchaefer(dat, firstq)

Arguments

dat

data frame

firstq

input character for the name of the column for the first variable (e.g., "Q2_1")

Value

data frame with new vectors of scores

Examples

1
dat = scoreSchaefer(dat, firstq = "Q2_1")

jsakaluk/sexscales documentation built on Nov. 4, 2019, 3:24 p.m.