Shubha, The calculation is:
wilderSum[1] <- x[1] for(i in 2:NROW(x)) { wilderSum[i] <- x[i] + wilderSum[i-1] * (n-1)/n } Where 'x' is the price series and 'n' is the number of periods. You can see the calculations for all functions in TTR's source code, which is on CRAN and r-forge (http://r-forge.r-project.org/projects/ttr/). Please feel free to contact me directly regarding questions about TTR. Best, Josh On Feb 6, 2008 8:22 AM, Shubha Vishwanath Karanth <[EMAIL PROTECTED]> wrote: > > Hi, > > Can somebody tell me the formula for "?wilderSum" in TTR package? I mean how > are these calculated? > > BR, Shubha > > Shubha Karanth | Amba Research > > Ph +91 80 3980 8031 | Mob +91 94 4886 4510 > > Bangalore • Colombo • London • New York • San José • Singapore • > www.ambaresearch.com > > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this > e-mail in error) please notify the sender immediately and destroy this > e-mail. Any unauthorized copying, disclosure or distribution of > the material in this e-mail is strictly forbidden. Any views or opinions > presented are solely those of the author and do not > necessarily represent those of Amba Holdings Inc., and/or its affiliates. > Important additional terms relating to this email can be obtained > at http://www.ambaresearch.com/disclaimer > > -- http://quantemplation.blogspot.com ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.