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
stata workflow book by Scott long data packages outdatedhi guys I tried to download data packages using 'findti workflow' but they are outdated and I'm usi…
Error r(498) when running dsgenl modelHello everyone, I'm trying to run a non-linear DSGE model but I got an error saying "equation invali…
How record variables to apply circsummarize: degrees or radians?I am using circsummarize to describe time of the day data (24 h clock) with the statistics mean dire…
Confidence intervals for ICC in variance components modelsI am estimating the ICC for an outcome with data on several 10,000s nested within ~50 groups. The ou…
Sensitivity analysis: sign testGood night, I want to perform an additional analysis on my data to obtain evidence on whether the t…
Subscribe to:
Post Comments (Atom)
0 Response to Predicting factorscores after conducting a CFA based on summary statistics
Post a Comment