Wuff
Wuff

Reputation: 257

Accessing the source code of Stata commands and functions

Is it possible to view the source code of Stata commands and functions? I am wondering how the lnskew0 command is implemented in Stata.

The source code could help to adapt functions to other languages, such as Python and R:

How to use Zero-skewness log transform in Python.

Upvotes: 0

Views: 2035

Answers (1)

user8682794
user8682794

Reputation:

For functions you can only see the inner workings of those relating to the egen command.

However, you can see the source code of commands/programs using the viewsource command:

viewsource lnskew0.ado

Typing help viewsource will provide further details.

Upvotes: 3

Related Questions