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
Calculating portfolio returns before formationHi all, I am trying to create hedge portfolios for different asset pricing models like Daniel, Mota,…
Expand year month in data A to merge with monthly data B -date function?Dear all, My goal is to merge DataA with DataB based on ticker and matching year and month in order …
Reshape data and order contents in columnsDear community, I would like to transfer a data record from the long to the wide format and combine…
Saving datetime in localHi all! I wanted to save a local at the beginning of a code that would save the exact date and time…
Exam question I am stuck onArray Array Array https://ibb.co/NY4JdJc Hello Guys, I am posting this thread as I have been tryin…
Subscribe to:
Post Comments (Atom)
0 Response to Create Functions using Mata
Post a Comment