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
Use if else loop to implement multiple conditional statementsHi Statalist community, Gig workers are individuals who have multiple employers and they can work f…
2023 Canadian Stata ConferenceDear colleagues, The 2023 Canadian Stata Conference will be held on 4 August 2023 at Toronto Metrop…
second highest value in tabstatHi, i need to export many summary tables to excel. In these summary tables I need to have the highes…
Marginsplot with levels(99 95 90)I would like to plot margins with multiple confidence intervals that appear as bars of narrowing thi…
Label valuesHello, I have been trying to generate a variable called animal1 following this code: Code: gen byte…
Subscribe to:
Post Comments (Atom)
0 Response to create a table from loops
Post a Comment