Summarize Item Analysis into Table

Share:

Description

This function takes the output of ItemAnalysis() and produces a useful table with item statistics. It also writes the table in the working directory, if asked to.

Usage

1
ReportTable(it, write_file=FALSE, sep=";")

Arguments

it

Output from ItemAnalysis

write_file

logical. Should a text file be written?

sep

Separator to use in the text output file.

Details

If asked to write a file, it will do so in the working directory.

Value

A data frame with item statistics, specifically:

Item

Number or Name of the Item.

Corr. with Scale

Correlation of the item with the sum of the rest of the items.

Factor Loading

Loading of the Item to a Single Factor

Mean

Item Mean

SD

Item SD

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)

ReportTable(depressionRel)