Description Usage Arguments Value Author(s) See Also Examples
add weight to port
1 2 | addwgt2port_amtao(port, wgtType = c("fs", "fssqrt", "ffsMV"), wgtmax = NULL,
totwgt = 1, ...)
|
port |
is a object. |
wgtType |
a character string, giving the weighting type of portfolio,which could be "fs"(floatingshares),"fssqrt"(sqrt of floatingshares). |
wgtmax |
weight upbar. |
... |
for Category Weighted method |
return a Port object which are of dataframe class containing at least 3 cols("date","stockID","wgt").
Andrew Dow
1 2 3 | port <- portdemo[,c('date','stockID')]
port <- addwgt2port_amtao(port)
port <- addwgt2port_amtao(port,wgtmax=0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.