Dear User, I am trying to import several excel files and perform Kruskal –Wallis test test. Therefore, I have written loop code, but unable to do. Kindly suggest me.
cd "C:\Users\Biswa\Desktop\file"
global country "Ind Pak Chi Sri Bang"
foreach x of global country {
import excel "C:\Users\xx\Desktop\file\`x'.xlsx", sheet("Sheet1") firstrow
kwallis o, by(i)
clear "`x'"
}
Related Posts with Loop for excel file import and Kruskal –Wallis test
Stata merging help - date horizontalHi there, I am currently struggling to merge two data files in the way that I want on Stata, so if …
Testing difference between regression coefficients in panel dataHi Statalist I use panel data of couples, each observation (is one household defined by the variab…
Margins expressionFor a panel fe regression where the IV and DV have both been log-transformed, I would like to know h…
How to make the coefficients displaying more aesthetic ?When I run the variable x on variable y, I have the coefficient of x is 0.0000569*** (15.28) I am …
How to handle endogeneity issues when doing probit?Dear all, I have difficulty in adjusting endogeneity after using -probit-. According to the results…
Subscribe to:
Post Comments (Atom)
0 Response to Loop for excel file import and Kruskal –Wallis test
Post a Comment