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!
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!
Comment