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
Advice for Imputing my Control VariablesHi everyone, I hope everything is well! I'm reaching out because I read some guidance on imputing b…
Testing measurement invariance across two groups/endless iterations when fitting the modelI am trying to test measurement invariance for a scale with 20 items loading 4 latent variables (no …
Analysing which colour contributes to the greatest price premiumHi Everyone, I hope you're well! I am trying to observe what colours have the greatest price premi…
How to simulate data with specified ROC AUC and specified odds ratioI would like to do the following: 1- simulate 1000 observations 2 - simulate a continuous biomarker …
Counting number of individuals (by sex and age) that answer a question in a longitudinal studyHello, I have a dataset with information of abuse (variable name: abused) at work by age and sex (v…
Subscribe to:
Post Comments (Atom)
0 Response to Loop for excel file import and Kruskal –Wallis test
Post a Comment