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
Controls, fixed effect models, and an issueDear Statalist, I am estimating the effect of parental separation on the amount of time a child spe…
Histograms - X AxisHi everyone! I would like to know, whether there is a way to remove the minor ticks and numbers tha…
Data Arrangement for Categorical RegressionHello, I would like to analyse whether a person's political opinion is changed after the loss of a p…
Food price seasonality and volatility analysisI would want to do an analysis on food price seasonality and volatility using trigonometric and sawt…
looping over variables in a local macroDear members of the Statalist community, I am a grad student with experience in R, currently workin…
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