Last updated: 2019-09-28

Checks: 1 1

Knit directory: mcfa-fit/

This reproducible R Markdown analysis was created with workflowr (version 1.4.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


The R Markdown is untracked by Git. To know which version of the R Markdown file created these results, you’ll want to first commit it to the Git repo. If you’re still working on the analysis, you can ignore this warning. When you’re finished, you can run wflow_publish to commit the R Markdown file and build the HTML.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility. The version displayed above was the version of the Git repository at the time these results were generated.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .RData
    Ignored:    .RDataTmp
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/

Untracked files:
    Untracked:  analysis/est_mlr.Rmd
    Untracked:  analysis/fit_index_stats.Rmd
    Untracked:  analysis/index_cfi.Rmd
    Untracked:  analysis/index_rmsea.Rmd
    Untracked:  analysis/index_srmr.Rmd
    Untracked:  analysis/index_tli.Rmd

Unstaged changes:
    Modified:   analysis/index.Rmd
    Modified:   analysis/roc_analyses.Rmd
    Modified:   analysis/summary_stats_tables.Rmd

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


There are no past versions. Publish this analysis with wflow_publish() to start tracking its development.


SRMR

The standardized root mean square residual (SRMR) is an aggregate measure of the deviation of the observed correlation matrix to the model implied correlation matrix Joreskog1981. Ideally, the average difference between the observed and expected correlations is minimal, and smaller values represent better fitting models. In MCFA, two difference SRMR are reported based on each level’s covariance matrix. The level-1 SRMR is known as SRMR-Within (SRMRW). The level-2 SRMR is known as SRMR-Between (SRMRB). The computation of each of these measures is roughly equivalent conditional on which covariance matrix is under consideration. Generally, SRMR is computed as the standardized difference between the observed correlations and the model implied correlations about variables as shown below. \[ SRMR = \sqrt{\frac{2 \sum_{j=1}^{p} \sum_{k=j}^{i} {\left( \frac{s_{jk} - \hat{\sigma}_{jk} }{ \sqrt{ s_{jj}s_{kk}} } \right)}^2 }{p(p+1)}} \] where \(p\) is the total number of variables in the model, \(s_{jk}\) and \(\sigma_{jk}\) are the sample and model implied, respectively, covariance between the \(j^{th}\) and \(k^{th}\) variables. For the SRMR, generally acceptable values less than .08 are used. However, Hu1999 suggested values less .06 alone or .08 in combination of other within recommended ranges are indicative of good fit.

In Mplus, SRMR is estimated slightly differently than shown in Equationeq:srmr. The computation extends the definition above by accounting for the meanstructure, multilevel structure, and categorical nature if applicable. The technical details of the computation of SRMRW and SRMRB in Mplus v8.2 is out of scope for this article, and the interested reader is referred to MuthenSRMR for more details.