+ Reply to Thread
Results 1 to 2 of 2

How to do automated linear regression equation with multiple varying criteria?

  1. #1
    Registered User
    Join Date
    05-31-2013
    Location
    Seattle
    MS-Off Ver
    Excel 2013
    Posts
    48

    How to do automated linear regression equation with multiple varying criteria?

    Hi folks,

    So I have used the data analysis toolpak to do seven linear regressions (seven XY combinations) on six different variables, and found the seven y=mx+b equations for the seven regressions that I conducted. I conducted seven different regressions because they were of varying time lags, and used different data points. Needless to say, y=mx+b is the standard linear equation used to predict Y based on X and m (slope) and b (intercept). I created a table storing all of the y's, all of the x's, all of the slopes (m), and all of the intercepts (b) in a worksheet named "data 3" (see attachment) and now I want to create a form where I can just easily run the automatic calculations using the y=mx+b equation based on selecting relevant criteria in a form (or a similar user interface/template). So for instance, I ran a regression between CCI (consumer confidence index) and Case-Schiller national home price index at time lag 0. IN this example, X=CCI and Y=Case Shiller national home price index. I want to be able to simply select "CCI & Case Shiller National Home price index" on the attached form (see attachment), and have the linear equation automatically calculate what the predicted Case Shiller national home price index is. Further, I want to be able to change the X or Y to any of the six different variables and have the equation automatically re-calculate using the correct x, y, m & b values that are stored in the table on worksheet named "data 3".

    Please see the attached form to get a better understanding of what I am looking for, and I'd like to discuss ideas on what ya'll think would be the best approach to achieve this goal.

    Form.xlsx

    I am most definitely open to restructuring my data or changing the form completely to better accomplish this task. I am not an expert level excel user, and I am wanting to learn how to use it. I would like to learn VBA coding, but practice makes perfect and so if ya'll have VBA ideas on how to accomplish this then I would love to discuss and learn!

    Thank you so much!

    Look forward to hearing from any of you for ideas or input. Also please ask questions if this is unclear. Thank you!
    Last edited by tvwright; 10-07-2015 at 11:50 AM.

  2. #2
    Registered User
    Join Date
    05-31-2013
    Location
    Seattle
    MS-Off Ver
    Excel 2013
    Posts
    48

    Re: How to do automated linear regression equation with multiple varying criteria?

    OK just an update... I am getting it to work on my own without any help so far. I will post a new link to my updated workbook in a bit just in case any one else wants to pitch in.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Multiple Linear Regression
    By BKB2003 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-11-2014, 10:03 AM
  2. Replies: 4
    Last Post: 02-10-2014, 04:37 AM
  3. Replies: 0
    Last Post: 02-06-2013, 02:08 PM
  4. Multiple Regression Equation
    By clair22 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2012, 08:52 PM
  5. Replies: 3
    Last Post: 03-06-2011, 01:38 PM
  6. Non-linear regression
    By OpsGuy in forum Excel General
    Replies: 1
    Last Post: 11-04-2008, 02:19 PM
  7. [SOLVED] how do i graph multiple linear regression?
    By enortirol in forum Excel General
    Replies: 0
    Last Post: 02-21-2006, 09:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1