View source: R/hidalgo_postproc.R
id_by_class | R Documentation |
id
by an external categorical variableThe function computes summary statistics (mean, median, and standard deviation) of the post-processed chains of the intrinsic dimension stratified by an external categorical variable.
id_by_class(object, class)
## S3 method for class 'hidalgo_class'
print(x, ...)
object |
object of class |
class |
factor according to the observations should be stratified by. |
x |
object of class |
... |
other arguments passed to specific methods. |
a data.frame
containing the posterior id
means,
medians, and standard deviations stratified by the levels of the variable
class
.
Hidalgo
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.