id_by_class {intRinsic} | R Documentation |
Stratification of the id
by an external categorical variable
Description
The function computes summary statistics (mean, median, and standard deviation) of the post-processed chains of the intrinsic dimension stratified by an external categorical variable.
Usage
id_by_class(object, class)
## S3 method for class 'hidalgo_class'
print(x, ...)
Arguments
object |
object of class |
class |
factor according to the observations should be stratified by. |
x |
object of class |
... |
other arguments passed to specific methods. |
Value
a data.frame
containing the posterior id
means,
medians, and standard deviations stratified by the levels of the variable
class
.
See Also
Examples
X <- replicate(5,rnorm(500))
X[1:250,1:2] <- 0
oracle <- rep(1:2,rep(250,2))
h_out <- Hidalgo(X)
id_by_class(h_out,oracle)
[Package intRinsic version 1.0.2 Index]