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??
Compressing several loopsHi all, I have the 16 loops below, that I want to compress it: HTML Code: mat Y = J(21, 32, .) fo…
reference option Oaxaca decompositionHi I am interesting to use my own reference model. so, I tried to use the reference option with Oaxa…
nearest neighbor matchingDear all, I know that there are a lot of topics on this matter, but unfortunately I cant figure out…
Trend analysisDear Listers, I plan to run a trend analysis to explore how original wellbeing score (bad vs. good …
transposing rows to columnsHi, My data contains multiple observations for the variable Dealsubtype, whereas I want to change t…
Subscribe to:
Post Comments (Atom)
0 Response to Stata vs Python. Why so many lines to do something so simple??
Post a Comment