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
Invalid syntax when trying break the line of codesHi all experts, Today I try to break a long code to multiple lines but Iface the same errors and I …
Is that possible to output correlation coefficient above a cutoff?For example, output the coefficient above .7 to a table, can we do this? can command estout do this?…
Time trend in Random Effects panel data modelI am trying to estimate the effect of a range of bank specific variables like Size, Risk leverage, A…
Requesting feedback on set-up of a time to event analysis with Andersen Gill methodHi there, I would like to perform a time to event analysis of hospital readmissions by patient usin…
Mean difference in metaanalysis stata13Hello statalist team!! I am using Sata13 for a metaanalysis. I use the command metan N1 varname1 sd1…
Subscribe to:
Post Comments (Atom)
0 Response to create a table from loops
Post a Comment