routine in R (r-project)

This project was awarded to robbierayas for $35 USD.

Get free quotes for a project like this
Project Budget
$30 - $250 USD
Total Bids
Project Description

I have the following problem that has to be solved in R ( i need all code).

There is a file with 3 variables a, b, c, and a dependent variable y, all separated by "|" (you can create a file with 100000 rows with randomly generated numbers).

1) Run linear regression producing y' = f(a, b, c).

1a) Save regression formula

2) Replace y with y'

3) Create another file with exponential weighted values of each a, b, c, and y' we will call them aw, bw, cw are weighted using multiple e1 based on previous values, yw is weighted using multiple e2 and is based of forward values of y'.

4) Merge resulting files from steps 2 and 3

5) Run regression, producing field y''. y" = f(a, b, c, aw, bw, cw) y'' should be added as 9th field in file.

5a) Save regression formula

6) Produce statistical analysis of the results

Once you have code for the above,

7) Write steps 1-7 into a formula (this formula will have parameters filename, e1, e2, and will produce r square as the result.

8) Use rmalschains package to produce formula with minimum r square.

9) Produce resulting linear coefficients for a, b, c, aw, bw, cw as well as e1, e2

This should all be done in one routine and I need everything in lightly documented code (ie point out steps 1, 2, etc).

Please let me know if you have any questions.

I work in the financial industry look forward to developing an ongoing relationship with the winning bidder.

Awarded to:

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online