newdata <- HolzingerSwineford1939
newdata[seq(1, 301, 3), -1] <- NA
mod1 <- 'f1 =~ x1 + x2 + x3'
fit1 <- cfa(mod1, newdata)
pred1 <- predict(fit1)
mod2 <- 'id ~~ x1 + x2 + x3
'
fit2 <- cfa(mod2, newdata)
dat2 <- fit2@Data@X[[1]]
pred1 <- data.frame(pred1, id = dat2[,1])
--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at http://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
Hans—
Factor indeterminacy means that the common factor includes two parts: (1) a weighted function of all observed variables in the model, and (2) an arbitrary vector—call it S. The pseudo factor scores that programs, including lavaan, give you are just the first part, omitting S. So the fundamental problem with using these scores to represent a common factor is that they are not equal to the common factor. So having gone to all this trouble, you have failed to achieve your objective.
Note that S is “arbitrary,” not “random.” If S were “random,” as in “random measurement error,” then you could easily adjust results from using pseudo factor scores to the results that you would have obtained from using actual factor scores. And you would know that the correlation between pseudo factor scores and some outside variable would overstate the correlation between the factor and the outside variable, by a degree based on the extent of indeterminacy. In other words, you could fix the problem.
But S is “arbitrary.” The only rule for S is that the S for each common factor must be orthogonal to every other S and orthogonal to every observed variable in the factor model. Now, take your external variable, that you want to predict using these pseudo factor scores. That variable is NOT in the factor model. So we could construct an S using that criterion variable itself as our raw material. First, we predict your criterion using the observed variables. Then we take the residual, adjust it to get the proper variance, and we call that S. Using that S would mean that the factor would have a HIGHER correlation with the criterion variable. Or we multiply that by -1, and use that as S. In this case, the factor could have a substantially LOWER correlation with the criterion.
Let me emphasize that, if we construct S correctly, then both of these sets of actual factor scores would be perfectly consistent with the factor model. They would BOTH be correct, in every way. This uncertainty is the price of specifying factor models with a substantial degree of indeterminacy. Researchers could keep indeterminacy low by specifying models with many strong indicators per common factor. But that would magnify statistical power, leading to poor fit statistics, and it would increase the cost of data collection.
--Ed Rigdon
--
Hans—
Yes, it makes a great deal of sense to include the criterion variable in the original factor model, rather than define the factor in one model and predict in another.
You can easily calculate factor indeterminacy using model parameter values. By varying those terms, you can see how changes affect the result. I favor Louis Guttman’s (1955) index. Guttman’s rho is equal to the minimal correlation between two different sets of factor scores for the same common factor. This index ranges from -1 to +1, and is calculated as:
Guttman’s rho = [2 x R2(F,Y)] - 1
where R2(F,Y) is R square for the common factor when predicted by the observed variables. R2(F,Y) is the “determinacy” number given by most SEM packages.
You can also calculate R2(F,Y) yourself as:
Diag(P x t(L) x inv(Sigma) x L x P)
Where:
P is factor covariance matrix
L is the loading matrix
Sigma is the observed variable covariance matrix
Diag means diagonal elements
t() means transpose
inv() means inverse
You will also find that Guttman’s rho tracks closely with composite reliability, especially for models with just one factor. Indicators per factor, number of factors, strength of loadings and strength of factor correlations all affect rho, to some extent.
How much indeterminacy can you stand? The field is far from acknowledging the need to worry about this question. If you took 0.80 (a common default minimum for statistical power), then in a model with, say several correlated factors, you might achieve rho = +0.80 with 3 indicators per factor with standardized loadings all at 0.90. If standardized loadings are only 0.80, you will need 6 indicators per common factor. Eitehr way, that’s more than you are going to see in the typical published application.
--Ed Rigdon
Guttman, L. (1955). The determinacy of factor score matrices with implications for five other basic problems of common-factor theory. The British Journal of Statistical Psychology, 8, 65-81.
From: lav...@googlegroups.com [mailto:lav...@googlegroups.com] On Behalf Of Dr. Hans Hansen
Sent: Wednesday, August 20, 2014 1:20 PM
To: lav...@googlegroups.com
Subject: Re: Saving ID Variable along predict()ed values
thanks for the explaination! some questions:
--