Re: [R] wilderSum

From: Josh Ulrich <josh.m.ulrich_at_gmail.com>
Date: Wed, 6 Feb 2008 09:10:59 -0600

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 <shubhak_at_ambaresearch.com> 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_at_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.
Received on Wed 06 Feb 2008 - 16:35:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 06 Feb 2008 - 17:30:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive