[R-SIG-Finance] how to compute the daily return?

Khanh Nguyen knguyen at cs.umb.edu
Sun Jun 21 00:11:28 CEST 2009


You can take a look here

http://cran.r-project.org/web/packages/zoo/vignettes/zoo-quickref.pdf

there is a 'Price and Returns' section.

Moreover, package PerformanceAnalytics has a 'Return.Calculate' method
that I think you can use.

-k

On Sat, Jun 20, 2009 at 5:54 PM, Michael<comtech.usa at gmail.com> wrote:
> Hi all,
>
> If I have wealth number on the following days.... what's the standard
> way of computing the daily return and growth rate? What's a standard
> way of defining growth rate?
>
> (360 day convention, and how about holidays and weekends)?
>
> 1/1/1999
> 1/4/1999
> 1/5/1999
> 1/6/1999
> 1/7/1999
> 1/8/1999
> 1/11/1999
> 1/12/1999
> 1/13/1999
> 1/14/1999
> 1/15/1999
> 1/18/1999
>
>
> Thanks a lot!
>
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
>



More information about the R-SIG-Finance mailing list