Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte(k61 gender) float age byte edu 0 1 40 5 0 1 73 5 0 2 54 5 0 1 41 5 0 2 35 5 0 1 49 5 0 1 46 5 0 1 45 5 2 2 37 5 1 1 40 4 end reg k61 i.gender age edu matrix list r(table) mata : table = st_matrix("r(table)") mata : sum(table[4, .] :< 0.2)
0 Response to how to output the results from mata to stata variable?
Post a Comment