makepcomp
Posted: Wed Aug 10, 2011 2:10 pm
Hi,
I am looking for a way to save the scores from Principal Component analysis using makepcomp. The added "difficulty" is that I would like to retain all scores -- i.e. if the sample comprises 10 series, 10 scores would be retained -- yet the number of indicators is not known in advance.
So, for instance I would have something like this:
group indicators
for !i=1 to end_value
indicators.add s{!i}
next
indicators.pcomp(cor, eigvale=v1, eigvec=m1)
indicators.makepcomp p1 p2 p3 p4 ...p(end_value)
.... but end_value depends, say, on a specific criterion which series may or may not fulfill (I'll test for it in the program).
Is there an easy way to retain all scores, regardless of how many indicators I have in my group? Would I have to build a strong containing so many p's as I have indicators?
Thanks, Philipp
I am looking for a way to save the scores from Principal Component analysis using makepcomp. The added "difficulty" is that I would like to retain all scores -- i.e. if the sample comprises 10 series, 10 scores would be retained -- yet the number of indicators is not known in advance.
So, for instance I would have something like this:
group indicators
for !i=1 to end_value
indicators.add s{!i}
next
indicators.pcomp(cor, eigvale=v1, eigvec=m1)
indicators.makepcomp p1 p2 p3 p4 ...p(end_value)
.... but end_value depends, say, on a specific criterion which series may or may not fulfill (I'll test for it in the program).
Is there an easy way to retain all scores, regardless of how many indicators I have in my group? Would I have to build a strong containing so many p's as I have indicators?
Thanks, Philipp