Hello everyone,
I have a single excel file that has multiple worksheets, the worksheets are named Country 1, Country 2, Country 3 etc. I want to be able to import all these worksheets and save each one as a data file using a loop. I'm capable of doing it individually but it makes my code very long. Also, how would I be able to merge all these dta files into one file afterwards?
Thanks for the help!
Related Posts with Importing multiple excel worksheets using a loop
Why is Hausman Test cannot work on my panel ARDL?I am doing panel ARDL on STATA and want to run a Hausman Test (command xtpmg) to determine which est…
Endogeneity in double hurdle modelsHi everyone, I am trying to estimate a double hurdle model: Probit and lognormal (Craggs model), I …
Random slopes and random effects with melogit and xtmelogitmelogit CSES5govact c.CSES5corrupt c.income c.gini c.polstrust || E1003: CSES5corrupt I'm running a…
Loop opening txt file and create a variableHi all, I have a series of txt file stored in a folder. I would love to do the following (ideally …
Need help Mixed effect model for my PhD projectHello everyone, I will really appreciate if you kindly suggest me how to develop correct Mixed Effe…
Subscribe to:
Post Comments (Atom)
0 Response to Importing multiple excel worksheets using a loop
Post a Comment