I have two variables, A and B. I want to list A, and ask Stata to attach significance stars to the listed values of A based on the p-value recorded in B (so that I can copy and paste the "starred" values of A into Excel and do further editing). An example code is provided below. Does such a command exist? Thank you!
Code:
sysuse auto,clear set seed 98034 generate pvalue = runiform() gsort pvalue list gear_ratio pvalue in 1/10 //how to ask Stata to add significance stars to numbers in the left column based on the pvalue recorded in the right column
0 Response to Add stars to numbers based on p value recorded in a given variable
Post a Comment