I am calculating the Spearman correlation between two variables and the respective over a large number of groups.
statsby r=r(rho) obs=r(N) p=r(p), by(group) clear: spearman wfe_time' ffe_time'
Since the data is large, I am having issues that statsby takes forever and then stata freezes, possibly due to memory.
What are more efficient ways to accomplish this (possibly also making sure that if Stata freezes, I have at least some results)?
statsby r=r(rho) obs=r(N) p=r(p), by(group) clear: spearman wfe_time' ffe_time'
Since the data is large, I am having issues that statsby takes forever and then stata freezes, possibly due to memory.
What are more efficient ways to accomplish this (possibly also making sure that if Stata freezes, I have at least some results)?
Comment