Description Usage Arguments Value References
Calculates statistics for state trace analysis. This function is mainly for
internal use, but the print
and summary
method for the returned objects
of class sta_stats
also provide a convenient overview of the data point of
the state-trace analysis.
1 2 3 4 5 6 7 8 9 10 |
data |
|
col_value |
|
col_participant |
|
col_dv |
|
col_within |
|
col_between |
|
shrink |
numeric indicating amount of shrinkage to apply to the
estimated covariance matrix. Generally, the covariance matrix needs to be
shrunk during the bootstrap cycle to avoid ill-conditioning. If |
warning |
if warning is |
A list
of list
s with additional class sta_stats
. The length of
the outer lists
corresponds to the number of dv
s in the data (i.e.,
each slot corresponds to one dv
and is named accordingly). Each of the
inner lists contains the following slots:
means
: vector of means across all conditions. Names of the vector
correspond to the within-participants conditions.
n
: matrix of number of observations (subjects) in each
within-participant block
cov
: the covariance matrix (for information only)
regcov
: adjusted covariance matrix following application of shrinkage
shrinkage
: a vector of length b
(where b
is the number of levels of
the between-participant independent variable) containing the specified or
estimated shrinkage values.
weights
: matrix of weights defined as: n * solve(regcov)
.
lm
: matrix of Loftus-Masson within-participant standard errors
(potentially used by the plotting function)
nanflag
: count of missing values (NA
s) per group?between-subjects
condition.
bad
: If not 0, indicates problems with the covariance matrix.
conditions
: mapping of means to between-subjects conditions
(character
vector).
The summary
method returns a data.frame
giving means, conditions, and
mean N. The print
method prints this data.frame
with specified digits
.
Ledoit, O. & Wolf, M. (2004). Honey, I shrunk the sample covariance matrix. The Journal of Portfolio Management, 30(4), 110-119.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.