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
Replicating Spatial Regression (with Spatially correllated disturbances) on MataHey guys, So I am trying to solve the following model in Mata: y = x + u u = rho*u + e This regr…
Bar Graph with datesDear Statalist, I have a list of several countries with dates of COVID-19 lockdown. I would like to…
I suppose something wronf with my codeI am running multiple regression with one categorical independent and six other variables. The datas…
using egen's max function with a localHello! I am Nithya. This is my first post, and i've tried to follow the advice on posting. But plea…
Interpreting Dummy variable and constantHi everyone, I want to study the effect of private universities systems with high tuition fees on i…
Subscribe to:
Post Comments (Atom)
0 Response to Loop for excel file import and Kruskal –Wallis test
Post a Comment