Cronbach Alpha

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

Mavis
Posts: 2
Joined: Wed Jul 29, 2015 3:38 am

Cronbach Alpha

Postby Mavis » Wed Jul 29, 2015 3:42 am

Hi ll,

I'm looking for a way to calculate the cronbach alpha in eviews 8. Has anyone done this test before?

greetings Mavis

EViews Glenn
EViews Developer
Posts: 2671
Joined: Wed Oct 15, 2008 9:17 am

Re: Cronbach Alpha

Postby EViews Glenn » Wed Jul 29, 2015 1:24 pm

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)

Mavis
Posts: 2
Joined: Wed Jul 29, 2015 3:38 am

Re: Cronbach Alpha

Postby Mavis » Fri Sep 04, 2015 2:19 pm

thx Glenn!
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