Description Usage Arguments Value Examples

Bin variable in groups (similar to Stata xtile)

1 |

`x` |
A vector |

`n` |
A numeric specifying number of quantiles. Can be used instead of cutpoints |

`probs` |
A vector of probabilities that an be used instead of cutpoints. Quantiles are computed as the inverse of the empirical distribution function (type = 1) |

`cutpoints` |
Cutpoints to use when |

`wt` |
A variable specifying weight in case the option n_quantiles is specified. |

An integer vector representing groups corresponding to cutpoints. Includes missing values when present in the original vector.

1 2 3 4 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.