Statalist


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

Rép. : Re: st: Matrix syntax with Stata 11


From   "Herve STOLOWY" <stolowy@hec.fr>
To   <statalist@hsphsun2.harvard.edu>
Subject   Rép. : Re: st: Matrix syntax with Stata 11
Date   Mon, 02 Nov 2009 22:17:50 +0100

Dear Sergiy:

I thank you for your reply. However, I checked the output I had with Stata 10 and I am almost sure that it worked with 33 characters. 

Best regards

Herve

>>> Sergiy Radyakin <serjradyakin@gmail.com> 02/11/09 20:28 >>>
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 <stolowy@hec.fr> 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/


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index