Description Usage Arguments Value
View source: R/selectPortfoiloCommunity.r
Select stocks based the community detection info,inside community
1 2 3 4 5 6 7 8 9 |
GRAPH |
the correlation-based graph |
mem |
the community membership of the GRAPH, default NULL |
mem_algo |
the algorithm to perform the community detection |
stock_id |
the names of the stocks, if the graph is unamed, will be used to name the nodes |
portfolioSize |
the size of the portfolio, ie., the stocks you want to pick from the graph |
type |
"inside" means the stocks are all picked from one community with very strong connection, "inter" means the stocks are all picked from different communities |
central_rule |
the rule use to compare different community by the hybird centrality measure when choose one stocks over another |
a vector with stock names or id
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.