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
Percentage width of the CalipmatchHi I am trying to match treatment and controls on ROA using calipmatch. However, I'm still new to th…
pooled OLS, random effects or fixed effectsHi guys, I have several questions regarding the proper use of model for my data. I have panel data …
Request for supportDear Sir/Madam, Good afternoon I used for my meta analysis, the command "metaprop case samplesize,ra…
Question about the command selectvarsDear all, I get an error when running the command selectvars. What's wrong with this? Code: sysuse …
Problem with lag variableDear Statalists, how do I generate a lag variable which is the same for all years. Code: * Example…
Subscribe to:
Post Comments (Atom)
0 Response to Print excel after calculating Shannon entropy
Post a Comment