Skip to content

DylanDijk/DRCdemand

Repository files navigation

DRCdemand

R-CMD-check test-coverage

The goal of DRCdemand is to aid in the analysis of the Irish electricity demand data set. Namely, we provide functions to perform clustering, forecasting and model aggregation.

Installation

You can install the development version of DRCdemand from GitHub with:

# install.packages("devtools")
devtools::install_github("DylanDijk/DRCdemand")

Example

This is a basic example which shows you how to compute Gower’s dissimilarity matrix:

library(DRCdemand)
data <- data.frame(
  V1 = c(1, 2, 3),
  V2 = c(4, 5, 6),
  V3 = c(7, 8, 9),
  V4 = as.factor(c(1, 1, 2))
)
gowers_distance(data)
#>       1     2
#> 2 0.375      
#> 3 1.000 0.625

We can also use our package to plot results from hierarchical clustering, demonstrated here using the R iris data:

hc <- hclust(dist(iris[, 1:4]))
dend <- as.dendrogram(hc)
pal <- c("#8DA0CB", "#E78AC3", "#66C2A5")
DRCdemand::plot_clusters(dend, 3, pal)

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors