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
Geographical dataDear Statalist, I have a time series on road accidents that happened in a particular region. Each a…
bayes: mlogit - errorHello everyone, I have the following vector (A) with 73 observations: A | Freq. Percent Cum. -----…
Vlookup unable to installHi everyone, I have been trying to install vlookup by typing in Code: findit vlookup search vlo…
Panel data rolling between country standard deviation by yearHi Statalist member. This is probably a pretty easy question to answer but I did not find a proper …
How to plot the difference between two marginsplot?Hi, I have two marginsplot for the same model for two different groups, but I would like to have a …
Subscribe to:
Post Comments (Atom)
0 Response to Creating a column out of the results from a loop
Post a Comment