statsElements {OpenRepGrid}R Documentation

Descriptive statistics for constructs and elements

Description

Several descriptive measures for constructs and elements.

Usage

statsElements(x, index = TRUE, trim = 20)

statsConstructs(x, index = T, trim = 20)

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.

Value

A dataframe containing the following measures is returned invisibly (see psych::describe()):

Note

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

Examples


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

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

# save the access the results
d <- statsElements(fbb2003)
d
d["mean"]
d[2, "mean"] # mean rating of 2nd element

d <- statsConstructs(fbb2003)
d
d["sd"]
d[1, "sd"] # sd of ratings on first construct


[Package OpenRepGrid version 0.1.15 Index]