Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Matrix syntax with Stata 11


From   Sergiy Radyakin <[email protected]>
To   [email protected]
Subject   Re: st: Matrix syntax with Stata 11
Date   Mon, 2 Nov 2009 14:28:16 -0500

Dear Herve,

I don't think it is a problem of Stata 11.
The problem is that the rowname is too long. The maximum is 30
characters in Stata 9, 11, and 31 in Stata 10.
There is more than that in your statement and Stata complains.

Try this:

matrix A=1
matrix rownames A = "abcdefgh012345678abcdefgh0123456"
matrix rownames A = "abcdefgh012345678abcdefgh01234567"
matrix rownames A = "abcdefgh012345678abcdefgh012345678"

Given that the variables can have names up to 32 chars it would be
great if this limit was increased, to 80, 244, 255 or whatever other
number is considered to be "nice".

Best regards, Sergiy Radyakin



On Mon, Nov 2, 2009 at 2:05 PM, Herve STOLOWY <[email protected]> wrote:
> Dear Statalisters:
>
> I have the following command:
>
> matrix rownames m9 = "Foreign ownership - Treatment (i)" "Foreign ownership - Control (ii)" "Difference (i-ii)" "T-Test" "p-value"
>
> With Stata 10, it used to work without problem.
>
> I have received Stata 11/MP today. Now, with the same command, I get the following error message:
>
> Foreign ownership - Treatment (i) invalid name
>
> I apologize because I did not have time to investigate all the changes in Stata 11.
>
> Would you have any idea?
>
> Best regards
>
> Herve Stolowy
>
> ***********************************************************
> Professeur/Professor
> HEC Paris
> Departement Comptabilite Controle de gestion / Dept of Accounting and Management Control
> 1, rue de la Liberation
> 78351 - Jouy-en-Josas
> France
> Tel: +33 1 39 67 94 42 - Fax: +33 1 39 67 70 86
> mail: stolowy at hec dot fr
> web: http://www.hec.fr/stolowy
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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