comp11 {BNPTSclust} | R Documentation |
Computes the distinct observations and frequencies in a numeric vector.
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.