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
Margins meologit: After 12 hours I have no results!I want to ask you the following question about Stata 15: - The data matrix I manage has almost 200,…
reshape errorsI am having issues reshaping the sample data below. I want to have wgt to be in long format. Any hel…
Forecast of Markov Switching modelHello everyone, I need help to check out of sample, a markov switch model that I estimated. Mark…
SURE model ,seemingly unrelated regressionEstimation via SURE model(Seemingly Unrelated Equation Models) Today, 00:43 dependent variabl…
R2 -xtreg, fe- vs R2 -areg, absorb(id)Dear all, I am running a panel regression with individual fixed effects. When using the -xtreg, fe-…
Subscribe to:
Post Comments (Atom)
0 Response to Create Functions using Mata
Post a Comment