I simply bought again from the 2012 Stata Convention in San Diego the place I gave a chat on Psychometric Evaluation Utilizing Stata and from the 2012 American Psychological Affiliation Assembly in Orlando. Stata’s structural equation modeling (SEM) builder was widespread at each conferences and I needed to indicate you the way straightforward it’s to make use of. In case you are not accustomed to the fundamentals of SEM, please check with the references on the finish of the put up. My objective is solely to indicate you find out how to use the SEM builder assuming that you just already know one thing about SEM. If you want to view a video demonstration of the SEM builder, please click on the play button under:
https://www.youtube.com/watch?v=Xj0gBlqwYHI
The info used right here and for the foolish examples in my discuss have been simulated to resemble some of the generally used measures of melancholy: the Beck Melancholy Stock (BDI). If you happen to discover these knowledge too foolish or not related to your individual analysis, you would as an alternative think about it being a set of inquiries to measure mathematical skill, the flexibility to make use of a statistical package deal, or no matter you needed.
The Beck Melancholy Stock
Initially revealed by Aaron Beck and colleagues in 1961, the BDI marked an essential change within the conceptualization of melancholy from a psychoanalytic perspective to a cognitive/behavioral perspective. It was additionally a landmark within the measurement of melancholy shifting from prolonged, costly interviews with a psychiatrist to a short, cheap questionnaire that could possibly be scored and quantified. The unique stock consisted of 21 questions every permitting ordinal responses of accelerating symptom severity from 0-3. The sum of the responses may then be used to categorise a respondent’s depressive signs as none, delicate, average or extreme. Many research have demonstrated that the BDI has good psychometric properties equivalent to excessive test-retest reliability and the scores correlate properly with the assessments of psychiatrists and psychologists. The 21 questions can be grouped into two subscales. The affective scale consists of questions like “I really feel unhappy” and “I really feel like a failure” that quantify emotional signs of melancholy. The somatic or bodily scale consists of questions like “I’ve misplaced my urge for food” and “I’ve bother sleeping” that quantify bodily signs of melancholy. Since its authentic publication, the BDI has undergone two revisions in response to the American Psychiatric Affiliation’s (APA) Diagnostic and Statistical Manuals (DSM) and the BDI-II stays very talked-about.
The Stata Melancholy Stock
Because the BDI is a copyrighted psychometric instrument, I created a fictitious instrument referred to as the “Stata Melancholy Stock”. It consists of 20 questions every starting with the phrase “My statistical software program makes me…”. The person questions are listed within the variable labels under.
. describe qu1-qu20 variable storage show worth identify sort format label variable label ------------------------------------------------------------------------------ qu1 byte %16.0g response ...really feel unhappy qu2 byte %16.0g response ...really feel pessimistic concerning the future qu3 byte %16.0g response ...really feel like a failure qu4 byte %16.0g response ...really feel dissatisfied qu5 byte %16.0g response ...really feel responsible or unworthy qu6 byte %16.0g response ...really feel that I'm being punished qu7 byte %16.0g response ...really feel dissatisfied in myself qu8 byte %16.0g response ...really feel am very essential of myself qu9 byte %16.0g response ...really feel like harming myself qu10 byte %16.0g response ...really feel like crying greater than typical qu11 byte %16.0g response ...turn out to be irritated or irritated simply qu12 byte %16.0g response ...have misplaced curiosity in different folks qu13 byte %16.0g qu13_t1 ...have bother making choices qu14 byte %16.0g qu14_t1 ...really feel unattractive qu15 byte %16.0g qu15_t1 ...really feel like not working qu16 byte %16.0g qu16_t1 ...have bother sleeping qu17 byte %16.0g qu17_t1 ...really feel drained or fatigued qu18 byte %16.0g qu18_t1 ...makes my urge for food decrease than typical qu19 byte %16.0g qu19_t1 ...involved about my well being qu20 byte %16.0g qu20_t1 ...expertise decreased libido
The responses encompass a 5-point Likert scale starting from 1 (Strongly Disagree) to five (Strongly Agree). Questions 1-10 kind the affective scale of the stock and questions 11-20 kind the bodily scale. Knowledge have been simulated for 1000 imaginary folks and included demographic variables equivalent to age, intercourse and race. The responses will be summarized succinctly in a matrix of bar graphs:
Classical statistical evaluation
The start of a classical statistical evaluation of those knowledge would possibly encompass summing the responses for questions 1-10 and referring to them because the “Affective Melancholy Rating” and summing questions 11-20 and referring to them because the “Bodily Melancholy Rating”.
egen Affective = rowtotal(qu1-qu10) label var Affective "Affective Melancholy Rating" egen bodily = rowtotal(qu11-qu20) label var bodily "Bodily Melancholy Rating"
We could possibly be extra subtle and use principal elements to create the affective and bodily melancholy rating:
pca qu1-qu20, elements(2) predict Affective Bodily label var Affective "Affective Melancholy Rating" label var Bodily "Bodily Melancholy Rating"
We may then ask questions equivalent to “Are there variations in affective and bodily melancholy scores by intercourse?” and take a look at these hypotheses utilizing multivariate statistics equivalent to Hotelling’s T-squared statistic. The issue with this evaluation technique is that it treats the melancholy scores as if they have been measured with out error and may result in inaccurate p-values for our take a look at statistics.
Structural equation modeling
Structural equation modeling (SEM) is a perfect technique to analyze knowledge the place the result of curiosity is a scale or scales derived from a set of measured variables. The affective and bodily scores are handled as latent variables within the mannequin leading to correct p-values and, better of all….these fashions are very straightforward to suit utilizing Stata! We start by choosing the SEM builder from the Statistics menu:
Within the SEM builder, we will choose the “Add Measurement Part” icon:
which is able to open the next dialog field:
Within the field labeled “Latent Variable Title” we will sort “Affective” (pink arrow under) and we will choose the variables qu1-qu10 within the “Measured variables” field (blue arrow under).
Once we click on “OK”, the affective measurement element seems within the builder:
We are able to repeat this course of to create a measurement element for our bodily melancholy scale (photos not proven). We are able to additionally enable for covariance/correlation between our affective and bodily melancholy scales utilizing the “Add Covariance” icon on the toolbar (pink arrow under).
I’ll omit the intermediate steps to construct the total mannequin proven under however it’s straightforward to make use of the “Add Noticed Variable” and “Add Path” icons to create the total mannequin:
Now we’re able to estimate the parameters for our mannequin. To do that, we click on the “Estimate” icon on the toolbar (duh!):
And the flowing dialog field seems:
Let’s ignore the estimation choices for now and use the default settings. Click on “OK” and the parameter estimates will seem within the diagram:
A number of the parameter estimates are tough to learn on this kind however it’s straightforward to rearrange the position and formatting of the estimates to make them simpler to learn.
If we take a look at Stata’s output window and scroll up, you’ll discover that the SEM Builder mechanically generated the command for our mannequin:
sem (Affective -> qu1) (Affective -> qu2) (Affective -> qu3)
(Affective -> qu4) (Affective -> qu5) (Affective -> qu6)
(Affective -> qu7) (Affective -> qu8) (Affective -> qu9)
(Affective -> qu10) (Bodily -> qu11) (Bodily -> qu12)
(Bodily -> qu13) (Bodily -> qu14) (Bodily -> qu15)
(Bodily -> qu16) (Bodily -> qu17) (Bodily -> qu18)
(Bodily -> qu19) (Bodily -> qu20) (intercourse -> Affective)
(intercourse -> Bodily), latent(Affective Bodily) cov(e.Bodily*e.Affective)
We are able to collect phrases and abbreviate some issues to make the command a lot simpler to learn:
sem (Affective -> qu1-qu10) ///
(Bodily -> qu11-qu20) ///
(intercourse -> Affective Bodily) ///
, latent(Affective Bodily ) ///
cov( e.Bodily*e.Affective)
We may then calculate a Wald statistic to check the null speculation that there isn’t any affiliation between intercourse and our affective and bodily melancholy scales.
take a look at intercourse
( 1) [Affective]intercourse = 0
( 2) [Physical]intercourse = 0
chi2( 2) = 2.51
Prob > chi2 = 0.2854
Last ideas
That is an admittedly oversimplified instance – we haven’t thought of the match of the mannequin or thought of any different fashions. We have now solely included one dichotomous impartial variable. We would choose to make use of a probability ratio take a look at or a rating take a look at. These are all essential points and shouldn’t be ignored in a correct knowledge evaluation. However my objective was to display how straightforward it’s to make use of Stata’s SEM builder to mannequin knowledge equivalent to these arising from the Beck Melancholy Stock. By the way, if these knowledge have been collected utilizing a fancy survey design, it might not be tough to include the sampling construction and pattern weights into the evaluation. Lacking knowledge will be dealt with simply as properly utilizing Full Info Most Chance (FIML) however these are subjects for one more day.
If you want view the slides from my discuss, obtain the information used on this instance or view a video demonstration of Stata’s SEM builder utilizing these knowledge, please use the hyperlinks under. For the dataset, you may as well sort use adopted by the URL for the information to load it immediately into Stata.
Slides:
http://stata.com/assembly/sandiego12/supplies/sd12_huber.pdf
Knowledge:
http://stata.com/assembly/sandiego12/supplies/Huber_2012SanDiego.dta
YouTube video demonstration:
http://www.youtube.com/watch?v=Xj0gBlqwYHI
References
Beck AT, Ward CH, Mendelson M, Mock J, Erbaugh J (June 1961). A list for measuring melancholy. Arch. Gen. Psychiatry 4 (6): 561–71.
Beck AT, Ward C, Mendelson M (1961). Beck Melancholy Stock (BDI). Arch Gen Psychiatry 4 (6): 561–571
Beck AT, Steer RA, Ball R, Ranieri W (December 1996). Comparability of Beck Melancholy Inventories -IA and -II in psychiatric outpatients. Journal of Persona Evaluation 67 (3): 588–97
Bollen, KA. (1989). Structural Equations With Latent Variables. New York, NY: John Wiley and Sons
Kline, RB (2011). Ideas and Follow of Structural Equation Modeling. New York, NY: Guilford Press
Raykov, T & Marcoulides, GA (2006). A First Course in Structural Equation Modeling. Mahwah, NJ: Lawrence Erlbaum
Schumacker, RE & Lomax, RG (2012) A Newbie’s Information to Structural Equation Modeling, third Ed. New York, NY: Routledge









