Dear Statalist,
I am generating a set of variables in the following fashion:
by panel_id: egen pop_mean=mean(pop)
by panel_id: egen pop_sd=sd(pop)
by panel_id: egen pop_sk=skew(pop)
I have not encountered any error so far. The problem is that I started executing the code a few days ago (my data contains tens of millions of observations). Based on what I see from the results window, it only takes minutes for doing the first two line (mean, sd) but the third line (skew) looks to take forever. I would be grateful for any advice, such as - does skew really takes much longer time than mean and sd? or is there any faster approach to get skewness (or approximation to that)?
Thanks in advance.
Charlie.
I am generating a set of variables in the following fashion:
by panel_id: egen pop_mean=mean(pop)
by panel_id: egen pop_sd=sd(pop)
by panel_id: egen pop_sk=skew(pop)
I have not encountered any error so far. The problem is that I started executing the code a few days ago (my data contains tens of millions of observations). Based on what I see from the results window, it only takes minutes for doing the first two line (mean, sd) but the third line (skew) looks to take forever. I would be grateful for any advice, such as - does skew really takes much longer time than mean and sd? or is there any faster approach to get skewness (or approximation to that)?
Thanks in advance.
Charlie.
Comment