Hi Statalist,
I am working on a bid dataset (more than 10000 observations). The variable wc varies from 0.1 to 1, which ends up 10 subsets. For each subset, I would like to apply
,then combine the 10 corresponding outputs together to one dataset. Doing each subset one by one works, but is time consuming. Any help to work it out easier? THANKS!
I am working on a bid dataset (more than 10000 observations). The variable wc varies from 0.1 to 1, which ends up 10 subsets. For each subset, I would like to apply
Code:
kdensity wb, gen(wpdf) at (wb)
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int nbidder float(wb wc) 2 .0482752 .1 2 .04862725 .1 2 .05051757 .1 2 .0572238 .1 2 .06130194 .1 2 .0696369 .1 2 .06972899 .1 2 .07122661 .1 2 .08323907 .2 2 .08330324 .1 2 .0835347 .1 2 .08376935 .2 2 .08387282 .2 2 .0839537 .2 2 .08401852 .2 2 .08647278 .1 2 .0874489 .2 2 .08905575 .2 2 .08974329 .1 2 .09038565 .2 end
Comment