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
pweight with melogitI have a Panel dataset with 260,647 data points consisting of 260,647 Respondents within 43,400 hous…
Formal tests of volatility in STATA17Dear Statlist: I have longitudinal data on employee data across multiple years and organizations. I…
Generating the "opposing" variable in a long datasetHi all, I am using Stata 17/SE on Mac and I am having trouble generating a variable using another o…
Editing graph with a TIFF fileHi everyone, Trying to find out if there's a way for me to edit my graph using stata's graph editor…
Color changes with PNG export.On the left, we have the graph I actually want (ignore please the slight transparency difference bet…
Subscribe to:
Post Comments (Atom)
0 Response to Out of sample calculations
Post a Comment