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
Fine and Gray calculate individual risksDear all, I would like to calculate the 10-year risk of stroke for each individual in my dataset, g…
Problem with variables names inside loopsHi all, I have a set of variables named "ratio_##########_co_###" (where # are numbers). My proble…
Quick question: winsor right only & interactionDear members I have 2 very quick questions. First: I need to winsorize a variable further ONLY on …
Dummy variables in first difference regressionHi guys, I have a potentially very stupid question to ask, but for the life of me I can not figure …
line graphic of series from 1st occurrence Covid-19Hello! I am using the data set provided in this study, "Oxford COVID-19 govt response tracker' here …
Subscribe to:
Post Comments (Atom)
0 Response to Print excel after calculating Shannon entropy
Post a Comment