stats: Descriptive statistics for constructs and elements of a grid.

Description Usage Arguments Value Note Author(s) Examples

Description

Descriptive statistics for constructs and elements of a grid.

Usage

1
2
statsElements(x, index=T, trim=20, output=1)
statsConstructs(x, index=T, trim=20, output=1)

Arguments

x

repgrid object.

index

Whether to print the number of the element.

trim

The number of characters an element or a construct is trimmed to (default is 20). If NA no trimming occurs. Trimming simply saves space when displaying correlation of constructs or elements with long names.

output

The type of output printed to the console. output=0 will supress printing of the output.

Value

statsElements: A dataframe containing the following measures is returned invisibly (see describe):
item name
item number
number of valid cases
mean standard deviation
trimmed mean (with trim defaulting to .1)
median (standard or interpolated)
mad: median absolute deviation (from the median)
minimum
maximum
skew
kurtosis
standard error

statsConstructs: See above.

Note

Note that standard deviation and variance are estimated ones, i.e. including Bessel's correction. For more info type ?describe.Note that standard deviation and variance are estimated ones, i.e. including Bessel's correction. For more info type ?describe.

Author(s)

Mark Heckmann

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 

statsConstructs(fbb2003)
statsConstructs(fbb2003, trim=10)
statsConstructs(fbb2003, trim=10, index=F)

statsElements(fbb2003)
statsElements(fbb2003, trim=10)
statsElements(fbb2003, trim=10, index=F)

d <- statsElements(fbb2003, out=0)
d

d <- statsConstructs(fbb2003, out=0)
d

## End(Not run)

OpenRepGrid documentation built on May 2, 2019, 4:54 p.m.