draw_cluster_analysis: draw k-mean cluster analysis result in histogram table

Description Usage Arguments Details Value Examples

View source: R/draw_cluster_analysis.R

Description

draw k-mean cluster analysis result in histogram table

Usage

1
draw_cluster_analysis(df_stocks, num_center, num_start)

Arguments

df_stocks

bunch of stocks stacked which user want to analyze

num_center

number of centers of clusters user might choose. There are no statisticaly proven best number. But You can use elbow-method to choose best param

num_start

number of random initialized starting point as a initial poitn of model training

Details

This compute the k-means algorithm with user designed parameter. Then it will draw the histogram result. This can be used to analyze the market trend, similiarity, risk parity, and regime of the market movement for each stocks inputted

Value

plot of cluster result from k-means

Examples

1
draw_cluster_analysis(df_stocks, num_center, num_start)

seungbochoi/private_Rpackage documentation built on May 17, 2019, 12:12 a.m.