Hello, I'm using -putexcel- to export to spreadsheet the stored results of an SSC command -kappaetc-.
The following code successfully exports to spreadsheet all requested items (Column headers, and Scalars) except for the last line of my code, which calls for a stored Matrix. Any advice would be much appreciated.
I note that the error message states "list: matrix expression must be enclosed in ()". However, all the variations of using the requested parentheses I can think of are unsuccessful in completing the code set:
The following code successfully exports to spreadsheet all requested items (Column headers, and Scalars) except for the last line of my code, which calls for a stored Matrix. Any advice would be much appreciated.
Code:
webuse rvary2, clear kappaetc rater1-rater5 putexcel set stata-example_results.xlsx, modify putexcel A1 = "Command", bold putexcel B1 = "Number of subjects", txtwrap bottom bold putexcel B2 = (r(N)), hcenter putexcel C1 = "Number of raters", txtwrap bottom bold putexcel C2 = (r(r)), hcenter putexcel D1 = "Min. number of ratings per subject", txtwrap bottom bold putexcel D2 = (r(r_min)), hcenter putexcel E1 = "Max. number of ratings per subject", txtwrap bottom bold putexcel E2 = (r(r_max)), hcenter putexcel F1 = "Avg number of ratings per subject", txtwrap bottom bold putexcel F2 = (r(r_avg)), hcenter putexcel G1 = "Proportion agreement expected" putexcel G2 = matrix list r(prop_e)
Code:
putexcel G2 = (matrix list r(prop_e)) putexcel G2 = matrix (list r(prop_e)) putexcel G2 = matrix list (r(prop_e)) putexcel G2 = matrix (list (r(prop_e)))
Comment