Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: problem with -mat_capp- command


From   "Zurab Sajaia" <[email protected]>
To   "statalist" <[email protected]>
Subject   st: problem with -mat_capp- command
Date   Mon, 12 Feb 2007 16:21:07 -0500

Dear all,

Although -mat_capp- is undocumented command and "is of very limited interest, usually only to Stata programmers ..." I decided to post this question, in case folks at Stata have plans to update it.

when merging matrices containing spaces in column names -mat_capp- was issuing the "conformability error

.matrix a= 1,2
.matrix colnames a="one two" three
.matrix b=1\2\3
.mat_capp c : a b, miss(.z)


problem seems to come from the line:
mat colnames `bb12' = `:colfullnames `b1'' `:colfullnames `b2''

and possible solution could be
mat colnames `bb12' = `:colfullnames `b1', quoted' `:colfullnames `b2', quoted'

(from reading the help, I was under impression that option 'quoted' was for -coleq-, roweq- only but it seems doing the same thing with -colfullnames- as well)

I'm using -mat_capp- in my program that is distributed to other users so now I'm deciding whether I wait for the next Stata update or consider other solutions in my code?
Thanks for any advice,
Zurab





*
* 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