Hi!
I am working on survey data and want to export the survey year for each country to an excel list.
I used this code:
foreach x of num 1/51 {
tab year if country == `x'
putexcel B`x' = year
}
However, it exports the same year for all countries .
I want to use outexcel, as I already exported other data to that list.
Thank you for your help!
Related Posts with putexcel string data values
Problem with foreachHi dear member, I am a beginner in the use of foreach. I need help to execute this code: foreach v…
Storing loop regression outputsHello everyone, I'm trying to run the below loop and store the estimates of each regression model; …
Difference in Difference (DiD) within GMMHello everyone, I am trying to work out how to complete a DiD (difference in difference) analysis w…
Issue with Clustering - Distance Measures (centroid, ward)Hello everyone, I'm struggeling with a problem, which is probably quite easy to resolve - but I was…
Do sum of all corresponding values in one column when other column has a certain valueI want to sum the column 'stat1' by the column 'Group' if it has a certain value, such as Group == '…
Subscribe to:
Post Comments (Atom)
0 Response to putexcel string data values
Post a Comment