Description Usage Arguments Details Author(s) References See Also Examples
The correct_gamma function accomplishes Step 4 of the algorithm with regard to replications of the estimated eta on x regression coefficient matrix. More specifically, the correct_gamma function re-orders and/or re-signs as needed within the estimated eta on x regression coefficient matrix for each replication of a simulation study with exploratory factor analysis.
1 | correct_gamma(P_data, rep, n.eta, sample_gamma)
|
P_data |
a list containing the correct permutation matrix, P_i, for each replication. |
rep |
the number of replications. |
n.eta |
the total number of latent variables within eta. |
sample_gamma |
a list containing replications of the estimated eta on eta regression coefficient matrix. |
The correct_gamma function uses P to re-order and/or re-sign as needed within the estimated eta on x regression coefficient matrix for each replication of a simulation study with exploratory factor analysis. This function returns a list, correct_gamma, of the re-ordered and/or re-signed estimated eta on x regression coefficient matrix for each replication and saves the list as a text file to the designated working directory.
Soyeon Ahn, Cengiz Zopluoglu, Seniz Celimli, Min Lu, & Nicholas D. Myers
Myers, N. D., Ahn, S., Lu, M., Celimli, S., Zopluoglu, C. (2016). REREFACT: An R package for reordering and reflecting factors for simulation studies with Exploratory Factor Analysis. Manuscript submitted for publication.
rerefact
, correct_alpha
, correct_beta
, correct_lambda
, correct_psi
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Load the P for Example 2 from Myers, Ahn, Lu, Celimli, and Zopluoglu (2016).
data(P_esem)
# Load 200 replications of the estimated eta on x regression
# coefficient matrix provided by replication
# numbers 1 through 100 and 4701 through 4800 in Example 2 from
# Myers, Ahn, Lu, Celimli, and Zopluoglu (2016).
data(sample_gamma_esem)
# Specify the following arguments within the correct_gamma function for Example 2 from
# Myers, Ahn, Lu, Celimli, and Zopluoglu (2016).
correct_gamma(P_data=P_esem, rep=200, n.eta=4, sample_gamma=sample_gamma_esem)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.