Stata Xtile. Quantiles are computed as the inverse of the empirical. Xtile creates a new variable that categorizes exp by its quantiles.
This list is comprehensive as of october 29 2019. These give the third quartile as r quantile auto price 0 75 type 2. Bin variable in groups similar to stata xtile usage xtile x n null probs null cutpoints null wt null arguments x.
I can obviously get around this by looping through the dates but this is time consuming.
If the cutpoints varname option is speciļ¬ed it categorizes exp using the values of varname as category cutpoints. This list is comprehensive as of october 29 2019. For 100 million observations this took 31 minutes. Bin variable in groups similar to stata xtile usage xtile x n null probs null cutpoints null wt null arguments x.
