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
Foreach and forevalues loopHi, I have a list of variables that look as follows: max_1 max_2 max_3. All the numbers in the vari…
Relative survival and relative excess risk (RER) using imputed dataHi everyone, Does anyone know how I can calculate relative survival (strs) and relative excess risk…
covert date with two digital yearHi Friend, I need to convert the string date format, such as "22-Apr-18" to date format. It seems th…
Autocorrelation Diff in DiffHello, I am working on the following Diff in diff model: ln_sales = b0 + b1*treatment + b2*(treat…
Sort out the observations from a large sampleHello everyone. I am a new user of Stata and new member of this forum. May I ask you a question. I a…
Subscribe to:
Post Comments (Atom)
0 Response to putexcel string data values
Post a Comment