Using the quantiles command instead of cut

quantiles f1, gen (assets_quartiles) nquant(4)

Instead of

egen assets_quartiles=cut(f1), group(4)

*The quantiles seems to provide a more precise cut than the command cut

No comments:

Post a Comment