I was experimenting with different uses of pointers. Turns out that in a larger dataset, pointer might conserve memory and hence offer some speed advantage. Those interested might find this code interesting. https://fintechprofessor.com/2021/12...in-mata-stata/
Related Posts with Speed comparison: Passing data vector by name vs pointers in Mata | Stata
Split a string into numbers and graphHi everyone,
I have a string variable in Stata called runningdays. It denotes all of the days in wh…
Compute standard errors with command xtregHi everyone!
When we have panel data, we have to take into account that the observations are not in…
Row MedianHello,
I have daily panel data over several years and for several stocks. For each day and for each…
How to compare regression models for survey data?Usually, we use the AIC value (estat ic) to compare regression models. But estat ic command doesn't …
Abnormal Returns/ Average return of the market, value-weightedHi everyone.
I am trying to generate abnormal returns in STATA.
To do so, I need to calculate the e…
Subscribe to:
Post Comments (Atom)
0 Response to Speed comparison: Passing data vector by name vs pointers in Mata | Stata
Post a Comment