Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
a > -Original Message- > From: anandpu...@gmail.com > Sent: Fri, 1 Mar 2013 15:05:19 -0500 > To: jrkrid...@inbox.com > Subject: Re: [R] Conditional Weighted Average (ddply or any other > function) > > For Sectors the results are correct, but for some (Country, Industr

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread Punit Anand
---Original Message- >> From: anandpu...@gmail.com >> Sent: Fri, 1 Mar 2013 14:13:37 -0500 >> To: r-help@r-project.org >> Subject: Re: [R] Conditional Weighted Average (ddply or any other >> function) >> >> Hi John, >> >> The sample size is huge involv

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
0 > To: r-help@r-project.org > Subject: Re: [R] Conditional Weighted Average (ddply or any other > function) > > Hi John, > > The sample size is huge involving 10,000 + firms. I have put a > representative sample using dput ( Name, ticker and country have been > changed so

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
See my last post which crossed yours. John Kane Kingston ON Canada > -Original Message- > From: anandpu...@gmail.com > Sent: Fri, 1 Mar 2013 14:33:17 -0500 > To: jrkrid...@inbox.com > Subject: Re: [R] Conditional Weighted Average (ddply or any other > function) >

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread Punit Anand
t; > Have you left out a equation that calculates MKTCAP? > > John Kane > Kingston ON Canada > > >> -Original Message- >> From: anandpu...@gmail.com >> Sent: Fri, 1 Mar 2013 13:53:44 -0500 >> To: jrkrid...@inbox.com >> Subject: Re: [R] Con

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
> -Original Message- > From: anandpu...@gmail.com > Sent: Fri, 1 Mar 2013 14:13:37 -0500 > To: r-help@r-project.org > Subject: Re: [R] Conditional Weighted Average (ddply or any other > function) > > Hi John, > > The sample size is huge involvin

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
000, 557093400, 224900300, 163470, 144320, > 3582664735, 3582664735, 5830366211, 10660833984, 9024061523, > 7628660645, 9154108398, 9154108398, 7064532227, 1804380005, > 6331067871, 10445639648, 9153587891, 9153587891, 6231200000, > 4.078e+09, 1010750, 1246

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread Punit Anand
8700, 260993500, 882575400, 1.151e+09, 855938413, 855938413 )), .Names = c("NAME", "Ticker", "Industry", "Sector", "Country", "FISCALYEAR", "ROE", "MKT"), class = "data.frame", row.names = c(NA, -

Re: [R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread John Kane
23", "ROE24", "ROE25", "ROE26", "ROE27"), EPS = c("EPS11", "EPS12", "EPS13", "EPS14", "EPS15", "EPS16", "EPS17", "EPS21", "EPS22", "EPS2

[R] Conditional Weighted Average (ddply or any other function)

2013-03-01 Thread Punit Anand
Hello R community, I am computing weighted average statistic by using ddply function: My data set is: N1 T1 S1 I1 C1 FY-4 ROE11 EPS11 MKT11 N1 T1 S1 I1 C1 FY-3 ROE12 EPS12 MKT12 N1 T1 S1 I1 C1 FY-2 ROE13 EPS13 MKT13 N1 T1 S1 I1 C1 FY-1 ROE14 EPS14 MKT14 N1 T1 S1 I1 C1