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
Calculate growth with dynamic lags in panel dataDears,
I have realized the following already in python (more familiar) but would also like to inclu…
Customization of graph combine with three graphsHi Statalisters
I am working on a visualization where I am interested in the following graph combin…
_rmcoll (Drop collinear variables)Dear all,
I tried to find an appropriate post which relates to my problem but I was not successfull…
After having run a robust regression, do I still need to test for heteroskedasticity?"regress indep dep control control vce(robust)"
After the regression, Stata doesn't allow me to use …
Ceo transition from male to femaleDear community,
I have an unbalanced panel data where I want to create the following variables with…
Subscribe to:
Post Comments (Atom)
0 Response to Loop for excel file import and Kruskal –Wallis test
Post a Comment