NEWS (original) (raw)
- Improved
MANOVA()
andEMMEANS()
: - Fixed several bugs.
- Modified the help pages.
- Improved output tables. Now all results are printed using
print_table()
. - Improved algorithm for estimating Cohen’s d: Now it uses**Root Mean Square Error** (RMSE) as the pooled SD to estimate Cohen’s d. Although there is disagreement on the estimation of pooled SD,
EMMEANS()
adopts this reasonable approach. If one usesMANOVA()
andEMMEANS()
to conduct the same_t_-test as using theTTEST()
function, the results will be identical. Indeed, the estimation methods of Cohen’s _d_in _t_-tests are acknowledged. In computing pooled SD in ANOVAs, it uses (1) the square root of mean square error (MSE) for between-subjects designs and **(2)**the square root of mean variance of all paired differences of the residuals of repeated measures for within-subjects and mixed designs. In both situations, it extracts thelm
object from the returned value ofMANOVA()
. Then, it mainly uses thesigma()
andresiduals()
functions, respectively, to do these estimates. For source code, see R file on GitHub. Thus, the results of Cohen’s d for designs with repeated measures are now different from those inbruceR
old versions (< 0.8.0), which indeed used an inappropriate method to compute pooled SD in such designs. - Added arguments (1)
ss.type
forMANOVA()
to specify either Type-II or Type-III Sum of Square; (2)aov.include
forMANOVA()
andmodel.type
forEMMEANS()
, for details, see the help pages. - Added warning messages for wrong usage of these functions. If observations are not uniquely identified in user-defined long-format data, the function takes averages across those multiple observations for each case (thanks to Xiangying Zou for reporting an infrequent bug related to this issue).
- Improved
Alpha()
: Now it directly usespsych::alpha()
andpsych::omega()
, rather thanjmv::reliability()
, to perform reliability analysis. The format of result output has been changed and improved. - Improved
EFA()
(almost completely rewritten): Now it directly usespsych::principal()
andpsych::fa()
, rather thanjmv::efa()
, to perform factor analysis (PCA or EFA). The format of result output has been changed and improved. MS Word output has been supported. A wrapper functionPCA()
has been added:EFA(..., method="pca")
. - Improved
CFA()
andlavaan_summary()
: NowCFA()
only uses thelavaan::cfa()
, rather thanjmv:cfa()
, to build model, and then useslavaan_summary()
to present results. Forlavaan_summary()
, many bugs have been fixed, and the format of result table has been changed and improved. Both functions now support saving table to MS Word. - Package dependencies: Much fewer strong dependencies, for faster and more robust installation. Removed
rio
andjmv
from dependencies. No longer loadrio
andpsych
whenlibrary(bruceR)
.
Three ways to specify the variable list (implemented in the functions such as SUM()
, MEAN()
,Alpha()
):
1. var + items
: use the common and unique parts of variable names. (e.g.,var="RSES", items=1:10, rev=c(3, 5, 8, 9, 10)
)
2. vars
: directly define the variable list. (e.g.,vars=c("E1", "E2", "E3", "E4", "E5"), rev=c("E1", "E2")
)
3. varrange
: use the start and end positions of the variable list. (e.g.,varrange="E1:E5", rev=c("E1", "E2")
)