Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65577

Automatic output names

$
0
0
Dear forum members,

my goal would be to save the matrix wk to wk_1995.txt; wk_1996.txt and so on. Unfortunately saving the value of the scalar `L' is not recognized by STATA and neither is renaming it to wk_`L'.



scalar L = 1995
forvalues L = 1995/2016 {

....



matrix list wk
mat2txt, matrix(wk) saving(C:\Users\Administrator\Desktop\Daten\2_Erge bnisse\wk_`L'.txt) title(wk_mf_ff) replace


scalar L = L+1


Thank you for the help!

Best Regards

Fabian

Viewing all articles
Browse latest Browse all 65577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>