[R] Forecast

Cedrick Johnson cedrick at cedrickjohnson.com
Thu Mar 11 08:45:37 CET 2010


?forecast
Maybe ?xts or ?timeSeries if you need to adjust dates, etc.

On 3/11/10, chinna <durgachennu at gmail.com> wrote:
>
> sample report data that i want to forecast
>
> quarter     quarter_index     Revenue
> 2007 Q1       1                  $3,856,799
> 2007 Q2       2                  $4,243,328
> 2007 Q3       3                  $4,930,369
> 2007 Q4       4                  $5,443,579
> 2008 Q1       5                  $5,164,830
> 2008 Q2       6                  $5,104,413
> 2008 Q3       7                  $5,713,240
> 2008 Q4       8                  $6,509,331
> 2009 Q1       9                  $6,271,951
> 2009 Q2       10                $6,657,190
> 2009 Q3       11                $6,979,821
> 2009 Q4       12                $7,581,619
>
>
> (Using the first report i want to generate the below report using R) is it
> possible?
> forecasted report for the year 2010
>
> quarter          Revenue              Revenue Predictor
> 2007 Q1         $3,856,799           $4,032,525
> 2007 Q2         $4,243,328           $4,032,525
> 2007 Q3         $4,930,369           $4,032,525
> 2007 Q4         $5,443,579           $4,032,525
> 2008 Q1         $5,164,830           $4,032,525
> 2008 Q2         $5,104,413           $4,032,525
> 2008 Q3         $5,713,240           $4,032,525
> 2008 Q4         $6,509,331           $4,032,525
> 2009 Q1         $6,271,951           $4,032,525
> 2009 Q2         $6,657,190           $4,032,525
> 2009 Q3         $6,979,821           $4,032,525
> 2009 Q4         $7,581,619           $4,032,525
> 2010 Q1                                   $4,032,525
> 2010 Q2                                   $4,032,525
> 2010 Q3                                   $4,032,525
> 2010 Q4                                   $4,032,525
>
> This is the forecasted report that i get using the reporting tool cognos(BI
> Reporting Tool).
> is this is possible with the R project.
> If possible can u please tell me the way.
>
>
> Thanks in advance
> chinna.
> --
> View this message in context:
> http://n4.nabble.com/Forecast-tp1588501p1588501.html
> Sent from the R help mailing list archive at Nabble.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.
>

-- 
Sent from my mobile device



More information about the R-help mailing list