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??
median survival time using interval censored dataHi statalisters, I'm looking to estimate the median survival time (plus IQR) overall for my interva…
Putdocx in a loopHi, I am trying to create several word documents containing some text, data, and pictures, I am doi…
invalid name r(198) when trying to drop placeholder values from datasetNew to Stata so this may be a stupid question. I am trying to drop placeholder values from a dataset…
Syntax for date format local macros based on c-class date value resulting in embedded leading spaceHello all, I frequently need to access files on a shared network that for reasons lost to time uses…
Clopper-Pearson Confidence Intervals with Complex Survey DataHello, I am currently working with complex survey data in Stata14 and would like to calculate exact…
Subscribe to:
Post Comments (Atom)
0 Response to Stata vs Python. Why so many lines to do something so simple??
Post a Comment