library(knitr)
knitr::opts_chunk$set(collapse = TRUE, comment = "#")
options(width = 120)
library(OpenRepGrid)

Sometimes basic descriptive measures for constructs and elements, e.g. mean, standard deviation, are neeeded. To prompt descriptive statistics for the constructs and elements of a grid use the function statsConstructs and statsElements. The following measures are returned:

R-Code

The following examples are identical for statsElements. Just replace statsConstructs by statsElements in order to analyze elements.

d <- statsConstructs(fbb2003)
d

The returned object is a dataframe, so you may access them as usual. E.g. to retrieve the means of the constructs, type

d$mean
statsConstructs(fbb2003, trim = 10)
statsConstructs(fbb2003, index = F)


markheckmann/OpenRepGrid documentation built on March 5, 2025, 7:43 p.m.