Hi, I'm a long time python programmer, and I'm taking a course in econometrics and getting my first exposure to Stata.
I do see the amazing power of Stata, but also a lot of strange stuff that should be simpler.
python:
Xbar = mean(sum(Y))
Stata:
quietly sum X, meanonly
return list
local Xbar = `r(mean)'
Perhaps I'm not searching or reading the documentation properly? Or does this have an internal logic that will soon make sense?
Thanks!
Related Posts with Stata vs Python. Why so many lines to do something so simple??
Discrete Time Hazard, Competing RisksHi, I am working on a survival time model using linear probability model. Discrete survival time mo…
Loop to copy all filesHi, i tried to do a loop to copy all my databases in the same file but i've got a problem. So i wan…
How to specify variable labels for the x-axis in several linesHello I would like to specify the variable names in several lines of a graph, because they are very …
Referring to dates using business calendarsDear Stata list, I am using time series data with a business calendar as I only look at trading dat…
tobit with vce (cluster clustervar) or xttobitDear all, I'm working with a unbalanced panel data set with 208500 observations from 3371 firms in …
Subscribe to:
Post Comments (Atom)
0 Response to Stata vs Python. Why so many lines to do something so simple??
Post a Comment