The explanation may, in fact, have to do with version issues (as you suggested) as dot-operator notation (which is what breaks mca)
was added someplace along the way. Given "hdroo_1." was a legitimate matrix row name in v5.0 but is not in v8.2, suggests the
addition occurred after v5.0.
Tom
Thomas J. Steichen
[email protected]
----------------------------------------------------------------------------
Facts do not cease to exist because they are ignored. - Aldous Huxley
----------------------------------------------------------------------------
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> Christian Holz
> Sent: Thursday, July 07, 2005 11:02 AM
> To: [email protected]
> Subject: st: AW: RE: Error in -mca- and -coranal-
> (correspondence analysis)
>
>
> Thanks Tom,
> Of course it cannot cope with fractions. But as the author of
> the ado file used this very example in the help file I did
> forget the 4th commandment of applied econometrics "Thou
> shalt inspect thy data" (Kennedy 2003: 396) and didn't check
> for that :) Thanks a lot.
>
> Christian Holz
> Department of Sociology, Anthropology and Applied Social Sciences
> University of Glasgow Scotland, U.K.
>
> -----Urspr�ngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]] Im Auftrag von
> Steichen, Thomas J.
> Gesendet: 07 July 2005 15:29
> An: [email protected]
> Betreff: st: RE: Error in -mca- and -coranal- (correspondence
> analysis)
>
> Christian --
>
> -mca- cannot cope with the non-integer values of headroom.
>
> Try
> .. gen hd = 10 * headroom
> .. mca foreign rep78 hd, d(3)
>
> Tom
>
> Thomas J. Steichen
> [email protected]
> --------------------------------------------------------------
> --------------
> Facts do not cease to exist because they are ignored. -
> Aldous Huxley
> --------------------------------------------------------------
> --------------
>
>
>
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]] On Behalf Of
> > Christian Holz
> > Sent: Thursday, July 07, 2005 10:09 AM
> > To: [email protected]
> > Subject: st: Error in -mca- and -coranal- (correspondence analysis)
> >
> >
> > Dear Stata-Listers,
> >
> > I have to perform some correspondence analyses and did
> > therefore download the mca.ado and coranal.ado of Philippe
> > Van Kerm (University of Namur, BE) from stata.com.
> > Unfortunately both ados always produce an error r(198)
> > "operator invalid" after the output of the principal inertia
> > components. Obviously there is something wrong in the ado
> > file itself. Is it possible that I experience a version
> > incompatibility here (the ados were written for version 5 -
> > I, myself, use 8.2)? Did anyone experience the same problem
> > and found a solution/workaround? Here the example from the
> > help files for -mca- and the output I get:
> >
> > . sysuse auto
> > (1978 Automobile Data)
> >
> > . mca foreign rep78 headroom, d(3)
> > --------------------------------------------------------------
> > --------------
> > --
> >
> > MULTIPLE CORRESPONDENCE ANALYSIS
> >
> > --------------------------------------------------------------
> > --------------
> > --
> >
> >
> > Total Inertia : 0.431
> >
> > Principal Inertia Components :
> >
> > Inertia Share Cumul
> > Dim1 0.308 0.713 0.713
> > Dim2 0.060 0.138 0.851
> > Dim3 0.039 0.090 0.941
> > headr_1: operator invalid
> > r(198);
> >
> >
> > Help is as always very much appreciated!
> > Cheers,
> >
> > Christian Holz
> > Department of Sociology, Anthropology and Applied Social
> > Sciences University of Glasgow Scotland, U.K.
> >
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept
**********************************************************************
*
* 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/