Hello,
I am looking for a solution to expand my matrices in Mata for some out of sample calculations. For example, we have population data for different 5 age-groups in 10 regions over 2000-2020 (matrix is 200x5). I would like to expand the matrix to include 20 additional years for each region (400x5).
Currently, I import the data to Stata and use xtset and tsappend commands and then import the data to Mata. I was hoping that I can do this directly in Mata.
Thank you.
Related Posts with Out of sample calculations
Why Use Stata?I've found this brief article interesting (https://www.theanalysisfactor.com/why-use-stata/). …
XTABOND2 and unit root test and measure of structural breakDear Professors, I am using xtabond2 for my research (System GMM) My questions are the following; 1.…
qreg2 'invalid cluster' errorHi, I have a question about the qreg2 command and would appreciate your feedback. I am using data …
Is it possible to "export delimited" with variable labels instead of variable names?Dear Statalisters, I'm quite new to Stata and I've run into what seems like a very "basic" problem.…
Problem with xtpdynI am trying to estimate a probit model with xtpdyn. However, when I run Code: xtpdyn hnpl gdp lir …
Subscribe to:
Post Comments (Atom)
0 Response to Out of sample calculations
Post a Comment