An open API service indexing awesome lists of open source software.

https://github.com/sgibb/bootstrap

Simple Bootstrapping for Hierarchical Clustering
https://github.com/sgibb/bootstrap

Last synced: about 2 months ago
JSON representation

Simple Bootstrapping for Hierarchical Clustering

Awesome Lists containing this project

README

        

# Simple Bootstrapping for Hierarchical Clustering

## Install

```s
install.packages("devtools")
library("devtools")
install_github("bootstrap", "sgibb")
```

## Example

```s
## load library
library("bootstrap")

## hclust example
createHclustObject <- function(x)hclust(dist(x), "ave")

## bootstrap
b <- bootstrap(USArrests, fun=createHclustObject, n=100L)

## plot
hc <- createHclustObject(USArrests)
plot(hc)

## draw bootstrap values to corresponding node
bootlabels.hclust(hc, b, col="blue")
```
![cluster dendrogram](http://i.imgur.com/BXMVdAV.png)