Sure. Say your sample data is a dataframe called sampledata:

sampledata$revenuePredictor <- 4032525

You might want to use a different model to predict revenue, though.

On Wed, Mar 10, 2010 at 11:59 AM, chinna <durgachennu@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
>
> 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/see-the-example-and-help-me-tp1587229p1587229.html
> Sent from the R help mailing list archive at Nabble.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.
>

	[[alternative HTML version deleted]]

