This refers to -prcomp- and -prcompw- by John R. Gleason
published in STB-47.
-prcomp- and -prcompw- tacitly assume that your categorical
variable is coded by integers. I guess that -gadcfa- is
not so coded.
Try this
egen gadcfa2 = group(gadcfa), label
prcomp gadnew gadcfa2
Nick
[email protected]
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of
> Xavi Barber
> Sent: 31 October 2003 10:43
> To: [email protected]
> Subject: st: compair mean: prcomp & prcompW
>
>
> I'm a new user in stata.
>
> When I use prcompw command, but stata say: 1: operator invalid.
>
> My command line is: prcomp gadnew gadcfa
>
> And if i use the prcompw command, stata say again : 1:
> operator invalid.
>
> Which is the problem?
>
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/