Hi!
I know that this question has already been published but the solution is not actually what I am looking for.
I am a beginner user of Stata and I have a data set with patients information and Mata matrix with population survival probabilities. The mata matrix is stratified by sex, age and calendar year:
| sex _year _age survprob | |-------------------------------| | 1 2000 50 .99376 | | 1 2000 51 .99318 | | 2 2000 50 .99751 | | 2 2000 51 .99744 |
I am looking for either:
1. Save the mata matrix of population mortality rates as .dta file which I can merge m1 with patients data file aftrewords OR
2. Merge mata matrix with .dta file by sex,age and calendar year.
I am grateful for any advice.
Thank you very mych in advance.
Regards,
Yuliya
Related Posts with Merge Mata matrix with Stata data file
Force the study entry date from an exposed subject to a matched non-exposed subjectDear Statalisters, I wish to perform a survival analysis comparing exposed and non-exposed subjects…
Using Restricted Maximum Likelihood in random-effects meta-analysis for binary outcomesI'm coming from R, so I'm hoping to find an easy way to get a similar output with Stata. I know that…
VECM - Johansen test and derivation of Cointegration Ecuation.Greetings again Stata Users. I'm here with a probably dumb question, but stills a question. How to …
Is Stata 16 coming out anytime soon ?Hi, I'm now using an older version of Stata(11) and planning to purchase a new version. Since Stata …
Referencing first non-omitted level of factor variable?I'm trying to put a title over a factor variable by using the refcat command of esttab. However, the…
Subscribe to:
Post Comments (Atom)
0 Response to Merge Mata matrix with Stata data file
Post a Comment