Statalist The Stata Listserver


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

st: obtaining the value of c(byteorder) in Mata


From   Phil Schumm <[email protected]>
To   [email protected]
Subject   st: obtaining the value of c(byteorder) in Mata
Date   Fri, 19 May 2006 15:39:48 -0500

Forgive me if I'm missing something obvious here, but my understanding was that values of c() scalars were to be referenced in Mata using st_numscalar() and st_strscalar(). Yet while this appears to work for numeric scalars, it doesn't seem to work for string scalars:


. mata: st_numscalar("c(SE)")
1

. mata: st_strscalar("c(byteorder)")

. di c(byteorder)
hilo


Could someone point out what I'm doing wrong?


-- Phil

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