Hello.
I am trying to create some doc/docx regression table output for each group of observations that has a given id number (variable name of the id number is "order"). Ideally, each table output would have as title the id or the given string variables from which the id number is generated. So far I have tried (with little success) the following code:
forval y = 1/`r(max)' {
regress y x1 x2...., vce(hc3) if order ==`i'
outreg2 using tryoutreg.doc, append ctitle(order)
}
In particular, stata does not accept the use of "if"...
Thank you. I have lost a lot of time without finding an appropriate solution, trying foreach, forval, and others.
Kind regards.
Related Posts with regressing group observations identified by id in loop and for each regression create a table output
Writing results to file when model fails to convergeHello list users. I am hoping someone has tired to do something all the lines of the following. I am…
Invalid SyntaxWe wanted to create an do-file for a coefficient-estimation for the previos 36 months for each fund …
Omitted variable due to CollinearityHi guys, I am trying to find which coefficient beta 1 or 2 has a greater effect on child mortality.…
Problem with a parametic survival analysisHi! Sorry, this will probably end long, but I really need som help. I am doing a reliability analy…
Bootstrapping in dominance analysisDear Stata experts. using Code: webuse auto // Binary outcome dominance analysis with factor var…
Subscribe to:
Post Comments (Atom)
0 Response to regressing group observations identified by id in loop and for each regression create a table output
Post a Comment