Dear Statalists, I have a problem since I am calculating the Shannon entropy for a very huge number of cells of a grid, but when I try to export the values for each cell all in an excel file I only get the values of the last cell.
Please, find my code here:
global geo "A1 A2 A3 A....."
foreach var of global geo {
entropyetc `var'
}
I tried many options to print all my results for example adding these lines:
matrix list r(entropyetc)
putexcel A1=matrix(r(entropyetc))
and I have also played with the results export function in the main menu. But I always obtain the last line of my results including Shannon exp_H Simpson rec_lambda and dissim for the last cell. Can you please help me?
Many thanks.
Related Posts with Print excel after calculating Shannon entropy
Opening file in .dat formatHi, I am currently using the 16th version of STATA on MacOS. I want to open a 4GB document that has…
Different results between etregress and FE/OLSDear Statalisters, Using panel data, I estimated treatment effect with different timings of introduc…
How do I implement a matched -staggered difference in differences approach on stata?Hi everyone, I am currently trying to analyse how the implementation of a policy impacts subjects a…
Outreg2 for movestayDears, I am trying to export the estimates of an endogenous switching regression model (run with mo…
Post Estimation using xtlsdvc estimatorHi, I want to estimate dynamic panel model with large T (55) and small N (17) (I have balanced panel…
Subscribe to:
Post Comments (Atom)
0 Response to Print excel after calculating Shannon entropy
Post a Comment