阅读背景:

在r中分组加权平均值(最好是用ddply,但不管用什么方法)

来源:互联网 

I have a dataset where I want to take both the normal 'mean' and the weighted mean by group. Each group can be considered a different portfolio or stock, price is the price of that portfolio or stock, size is the shares, gain is the return in percentage, and so market cap would be price*size. I have a dataset where I want to take both the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: