Skip to content
Prev 318549 / 398503 Next

Conditional Weighted Average (ddply or any other function)

Is there any chance you meant
 ddply (dat1 , .(Sector, FISCALYEAR), summarise, WROE=wavg(ROE, MKT))
??

It gives a result but I have no idea if it makes sense.

John Kane
Kingston ON Canada
____________________________________________________________
GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys
Works with AIM?, MSN? Messenger, Yahoo!? Messenger, ICQ?, Google Talk? and most webmails