Hi ll,
I'm looking for a way to calculate the cronbach alpha in eviews 8. Has anyone done this test before?
greetings Mavis
Cronbach Alpha
Moderators: EViews Gareth, EViews Moderator
-
- EViews Developer
- Posts: 2671
- Joined: Wed Oct 15, 2008 9:17 am
Re: Cronbach Alpha
It's not built in, but the following program snippet does an example computation in two different ways. Once could put this in an add-in with just a little bit of work
Code: Select all
' compute Cronbach's alpha example data from http://www.ats.ucla.edu/stat/spss/faq/alpha.html
' get data
wfopen http://www.ats.ucla.edu/stat/spss/faq/alpha.sav
' create group and compute covariance matrix
group g1 q1 q2 q3 q4
g1.cov(out=aa, df) cov
!n = g1.@count
' sum and mean of the variances
!sumvar = @sum(@getmaindiagonal(aacov))
' sum of all covariances (variance of sum of the measures)
!sumcov = @sum(@vec(aacov))
' first definition
scalar kronbach1 = !n/(!n-1) * (1 - !sumvar / !sumcov)
' sum and mean of of unique covariaces
!sumhcov = @sum(@vech(aacov)) - !sumvar
!meanhcov = !sumhcov / (!n * (!n-1)/2)
' second definition
scalar kronback2 = !n *!meanhcov / (!sumvar/!n + (!n-1)*!meanhcov)
Re: Cronbach Alpha
thx Glenn!
I am going to try to implement it.
I am going to try to implement it.
Return to “General Information and Tips and Tricks”
Who is online
Users browsing this forum: No registered users and 11 guests