Hello, I have a series of loops. Right now they are set to display, but I want them to write the data to a xls file to create a table. I have tried messing around with eststo but I can't seem to get it yet. I guess I would have to replace the display with a different command...
egen id=group(thing otherthing)
forvalues i=1989(1)2003{
display `i' distinct id if year1==`i'
}
forvalues i=1989(1)2003{
display `i' distinct id if urban==1 & year1==`i'
}
forvalues i=1989(1)2003{
display `i' distinct id if urban==3 & year1==`i'
}
Related Posts with create a table from loops
Predict residuals after running a FE / RE modelHow can residual centering be done after running a panel data regression? It can be done easily aft…
Using margins command after medeffHi all, I used medeff comand to see mediation effects. Because my outcome variable and mediator var…
Percentage explained by the standard deviation of linear combination of independent variablesHello, everyone, I have a question about using standard deviation to explain changes in the dependen…
"codebook, compact" with complete names of variables?Hi all, I use STATA 17 and I do like the "codebook, compact" command to generate a log-file with inf…
gologit2 with autofit is too slow. Is there any alternative?I'm running a regression which has life satisfaction (measured in a 1-10 scale) as a dependent varia…
Subscribe to:
Post Comments (Atom)
0 Response to create a table from loops
Post a Comment