Description Usage Arguments Details Value Note Author(s)

Computes the distinct observations and frequencies in a numeric vector.

1 | ```
comp11(y)
``` |

`y` |
Numeric vector. |

The code of the function is the same as the "comp1" function from the "BNPdensity" package. The change is in the output of the function. This function is for internal use.

`jstar` |
variable that rearranges "y" into a vector with its unique values. |

`nstar` |
frequency of each distinct observation in "y". |

`rstar` |
number of distinct observations in "y". |

`gn` |
variable that indicates the group number to which every entry in "y" belongs. |

For internal use.

Martell-Juarez, D.A., Barrios, E., Nieto-Barajas, L. and Pruenster, I.

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.