Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: compair mean: prcomp & prcompW


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: compair mean: prcomp & prcompW
Date   Fri, 31 Oct 2003 11:04:38 -0000

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index