| statsElements | R Documentation |
Several descriptive measures for constructs and elements.
statsElements(x, index = TRUE, trim = 20)
statsConstructs(x, index = T, trim = 20)
x |
|
index |
Whether to print the number of the element. |
trim |
The number of characters an element or a construct is trimmed to (default is |
A dataframe containing the following measures is returned invisibly (see psych::describe()):
item name
item number
number of valid cases
mean standard deviation
trimmed mean (default .1)
median (standard or interpolated)
mad: median absolute deviation (from the median)
minimum
maximum
skew
kurtosis
standard error
Note that standard deviation and variance are estimations, i.e. including Bessel's correction. For more info
type ?describe.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.