comp11: Univariate ties function

Description Usage Arguments Details Value Note Author(s)

View source: R/comp11.R

Description

Computes the distinct observations and frequencies in a numeric vector.

Usage

1
comp11(y)

Arguments

y

Numeric vector.

Details

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.

Value

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.

Note

For internal use.

Author(s)

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


BNPTSclust documentation built on Aug. 20, 2019, 1:04 a.m.