Statalist


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

RE: AW: st: Stata Inbuilt commands


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: AW: st: Stata Inbuilt commands
Date   Thu, 8 Oct 2009 17:06:08 +0100

Martin and Maarten [NB] have already explained that the code for inbuilt
functions and commands is not visible to users. Such inbuilt commands
are coded in C or Mata and the code compiled; the C or Mata source code
remains inaccessible and firmly within StataCorp. 

-invnorm()- and -uniform()- and their successors are cases in point.
There is nothing for such functions that users can see inside. 

What Victor may be thinking of here is -viewsource- or -source-: 

[P]     viewsource  . . . . . . . . . . . . . . . . . . . . . View
source code
        (help viewsource)

[M-1]   source  . . . . . . . . . . . . . . . . . . .  Viewing the
source code
        (help [M-1] source)

Book    . . . . . . . . . . . . . . . . . . . . . . .  Thirty-three
Stata Tips
        . . . . . . . . . . . . . . . . . . . . H. Joseph Newton and N.
J. Cox
        http://www.stata.com/bookstore/tips.html

SJ-6-1  pr0022  . . . . . . . . . . . Stata tip 30: May the source be
with you
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N.
J. Cox
        Q1/06   SJ 6(1):149--150                                 (no
commands)
        tip for using viewsource to locate and view source
        code or text files

However, "source code" in the descriptions above is a strict subset of
the entire source code, i.e. ado files and uncompiled Mata code. To
repeat, the compiled source code is only visible through joining
StataCorp as a developer. 

Nick 
n.j.cox@durham.ac.uk 

Victor M. Zammit

Thank you very much,Martin and Mateen foryour help.I will take a look at
the sources that you have referred me to.However,some couple of years
ago,there was the same query and someone suggested some ado file that
reveals the code that is implied by functions such as
invnorm(uniform()).I know I had saved that suggestion,but since then the
computer that I was using had broken down and got lost.
Thank you before hand for any suggestions,


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