I have a dataset consisting of 11 items of binary data (0/1) that will be the basis for my dependent variable. There are 240 observations collected by means of a survey. Since the data is binary, the CFA is run based on summary statistics (SSD) and using polychoric correlations. See code below (as also previously supplied in this forum):
----
local thevars ..."list of variables goes here"...
polychoric `thevars'
mat polychR = r(R)
forvalues i=1/`: word count `thevars' ' {
forvalues j=1/`i' {
local setcor `setcor' `=polychR[`i',`j']'
}
if `i' < `: word count `thevars' ' local setcor `setcor' \
}
local N = _N
clear
ssd init `thevars'
ssd set obs `N'
ssd set cor `setcor'
..."sem or factormat with options start here..."
----
This code has provided me with a good model, the problems I have is with figuring out how to be able to predict factor-scores for my observations. As the Stata-memory only holds summary statistics after the sem-command, I can not run “predict” as I could have if based on the raw data. How should I proceed in order to predict factor-scores for my observations?
Related Posts with Predicting factorscores after conducting a CFA based on summary statistics
CADF testHello everyone, Country:18 Year:17 I'm using STATA for two weeks. I want to achieve the CADF unit…
Auto Correlation with xtabondHello, I have run an xtabond regression and have proceeded to test for auto correlation using estat …
I need to explain these commands in panel regressionPlease I am new in STATA I find these commands in a paper please can you explain for me before we r…
StanStandard error for wald test …
Suppress legend on histogramHello all, I would like to create a histogram of a 4-level categorical variable (hh_comp) that descr…
Subscribe to:
Post Comments (Atom)
0 Response to Predicting factorscores after conducting a CFA based on summary statistics
Post a Comment