GetScores: Extract Participant Scores from Item Analysis Object

Description Usage Arguments Details Value Author(s) Examples

View source: R/Scale.R

Description

Takes an output of the ItemAnalysis() function, and extracts the participants scores, as calculated inItemAnalysis(). If asked to, it writes the scores in a column in a .csv file.

Usage

1
GetScores(it, write_file=FALSE, sep=";", scale_name="My_Scale")

Arguments

it

An ItemAnalysis object, created by the ItemAnalysis() function.

write_file

logical. Should the function write a .csv file?

sep

If a file is to be written, sep will be the delimiter. Defaults to ";".

scale_name

character. Name for use in the data.frame as well as in the written file.

Details

If you need another type of scores, you should specify it in the ItemAnalysis() function, with the score_type argument.

Default scale name is "My_Scale". Thus, default output file name is "My_Scale.csv".

Value

A data.frame with the scores of the participants.

Author(s)

Nikolaos Giallousis, psierevn@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
data(Depression98)
depressionScale <- Scale(data=Depression98, 
                         orders=list(
                           c(16,19,11,9,1,17,5,18,4,8,2,12,
                             20,10,14,6,3,13,15,7),
                           c(1,18,4,15,7,8,3,14,20,6,19,16,
                             12,5,10,13,2,17,11,9)),
                         orders_id=c(
                           rep(1, 49),
                           rep(2, 49)),
                         reverse=c(3,4,13,14,18,20),
                         col_names= paste('q', 1:20, sep=''))
depressionPre <- PreProc(depressionScale)

depressionRel <- ItemAnalysis(depressionPre)

depressionScores <- GetScores(depressionRel)

Scale documentation built on May 2, 2019, 1:27 p.m.

Related to GetScores in Scale...