Posts by: Brendan K

Re: WLSRegression using Excel VBA
Yes, the desired outcome is to produce the 3 beta coefficients. One for the y-intercept, and for the 2 independent variables.
Go to post added 6 years ago
Re: WLSRegression using Excel VBA
Well, I really am using it for an ordinary least squares because all of the weights are 1's. So the diagonal matrix, would have all 1's in the diagonal and all 0's in all other cells. Yes, the matrix would be an nxn matrix with n corresponding to the number of 1's in a vector (the weights) I copied ... Read More
Go to post added 6 years ago
WLSRegression using Excel VBA
Hello, I'm using the following code to create a diagonal matrix and then to produce the Betas for a regression analysis. For some reason my output ends as 0, or I receive an #Value error stating one of my values is of the wrong data type. My analysis involves a y-intercept and 2 independent vari... Read More
Go to post added 6 years ago
New Collection and Looping
I want to build a new collection from a desired range, but I want to skip the blank cells. I tried to begin the loop with Do While Not (ISempty(activecell)), but this is still pulling blank cells. The collection involves 2 thresholds - a minimum and maximum budget variance - corresponding to a list... Read More
Go to post added 7 years ago