capt log close log using p5, text replace set more on clear webuse grunfeld,clear drop time reshape wide invest mvalue kstock, i(year) j(company) set matsize 150 sureg (invest1 mvalue1 kstock1) (invest2 mvalue2 kstock2) (invest3 mvalue3 kstock3) (invest4 mvalue4 kstock4) (invest5 mvalue5 kstock5) (invest6 mvalue6 kstock6) (invest7 mvalue7 kstock7) (invest8 mvalue8 kstock8) (invest9 mvalue9 kstock9) (invest10 mvalue10 kstock10) test [invest1]mvalue1 = [invest2]mvalue2 = [invest3]mvalue3 = [invest4]mvalue4 = [invest5]mvalue5 = [invest6]mvalue6 = [invest7]mvalue7 = [invest8]mvalue8 = [invest9]mvalue9 = [invest10]mvalue10 test [invest1]kstock1 = [invest2]kstock2 = [invest3]kstock3 = [invest4]kstock4 = [invest5]kstock5 = [invest6]kstock6 = [invest7]kstock7 = [invest8]kstock8 = [invest9]kstock9 = [invest10]kstock10 set more on log close