Hi everyone!
Do you know how to export a matrix that I did in stata with mata into a txt file? Thank you !
Best,
Clara
Do you know how to export a matrix that I did in stata with mata into a txt file? Thank you !
Best,
Clara
clear
// Example matrix
mata: S = runiform(200,200)
//
// preserve Stata data here if desired
clear
getmata SS* = S
export delimited SS* using "c:/temp/mymatrix.txt", ///
delimiter(" ") novarnames nolabel datafmt replace
// restore Stata data here if necessary
Comment