I have a panel data and I have used a loop to tabulate the standard errors by stacking 3 columns together. The standard error value is estimated for each year (1993-2018).
forvalues i = 1993(1)2018{
preserve
stack column1 column2 column3 if year == `i', into(a) clear
tabstat a, statistics( semean ) columns(variables)
restore
}
The problem is that after estimation, I have to manually input each value into one new column (from 1993-2018). Is there a way to add a command in the loop so that each se value that it estimates is automatically put into the same column?
Thank you.
Related Posts with Creating a column out of the results from a loop
[HELP] Destring Variables DilemaHello Statalist -- Hope everyone is doing well. I am currently cleaning a dataset and am stumbling …
How to produce a table that shows the estimates of beta_cf and beta_dr for the 25 size BEME-sorted portfoliosHi Mr. Clyde Schechter and all STATALIST expert, I have an issue which i really appreciate the h…
Extracting Year From DateHi, I have looked through older discussions and applied suggestions but my code returns an empty var…
Variable types for regressionsCan anybody let me know what are the variable types on which a regression can run? …
Obtaining marginal effects for all possible predictsHi everyone, I was wondering to know how can I combine the below four margins commands in a single o…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a column out of the results from a loop
Post a Comment