Hi All,
I am new to the Mata programming and currently trying to convert some codes from Matlab to Stata using Mata. I am sorry if my question seems rather straightforward.
I would need to create functions that can be ran individually. Should I use ado files or do-files to create the functions?
Also, when I tried to run a do-file with Mata, it seems that the program cannot be ran automatically by hitting the Execute button. Does that mean I shouldn't add the command "Mata" and "end" to the do-file?
Thank you in advance!
Related Posts with Create Functions using Mata
How to restructure aggregated count data as individual observation?Hi altruist, I am just wondering whether STATA has any function to convert aggregated count data in…
Different way of clustering with reghdfeHello everyone! I'm currently running a multi-way fixed effect regression using the command reghdfe…
Instrumental Variable Estimation with binary iv and categorical dependent variableDear Sir/Madam, Thank you very much for providing this kind of forum. By this post, I would like to…
calculating marginal effect of logged independent variableDear Statalists, I have a question which I tried to look it up here to see if anyone has asked befo…
Coefficient of level and lagged explanatory variable with different signHi, Estimating by system GMM and treating the variable of interest as exogenous, without including …
Subscribe to:
Post Comments (Atom)
0 Response to Create Functions using Mata
Post a Comment