A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

regression analysis



 
 
Thread Tools Display Modes
  #1  
Old October 2nd, 2008, 02:05 AM posted to microsoft.public.excel.misc
usedtostata
external usenet poster
 
Posts: 3
Default regression analysis

Hi,

I'm trying to figure out OLS regression with excel. Can anyone tell me why
the data analysis toolpak gives me ANOVA results?

Also, does anyone know an easy method for creating dummy varibles?

Thanks


  #2  
Old October 2nd, 2008, 02:44 AM posted to microsoft.public.excel.misc
ShaneDevenshire
external usenet poster
 
Posts: 2,232
Default regression analysis

Hi,

I'm afraid I don't know what OLS is, but in the spreadsheet you can look at
the LINEST function or LOGEST. There is a fairly good help on these
functions. You can also get a couple of linear regression lines and formulas
using the chart tool.

By dummy variables do you mean some random data? If so then you have =RAND()
and RANDBETWEEN(1,100) in the spreadsheet and a random number generator in
the Analysis ToolPak.

--
Thanks,
Shane Devenshire


"usedtostata" wrote:

Hi,

I'm trying to figure out OLS regression with excel. Can anyone tell me why
the data analysis toolpak gives me ANOVA results?

Also, does anyone know an easy method for creating dummy varibles?

Thanks


  #3  
Old October 2nd, 2008, 04:44 AM posted to microsoft.public.excel.misc
Jerry W. Lewis
external usenet poster
 
Posts: 491
Default regression analysis

The ANOVA table evaluates the significance of the model as a whole, vs. the
t-tests below it in the output that evalute the significance of individual
fitted coefficients.

Can you be more specific about your dummy variable question?

Jerry

"usedtostata" wrote:

Hi,

I'm trying to figure out OLS regression with excel. Can anyone tell me why
the data analysis toolpak gives me ANOVA results?

Also, does anyone know an easy method for creating dummy varibles?

Thanks

  #4  
Old October 2nd, 2008, 04:29 PM posted to microsoft.public.excel.misc
usedtostata
external usenet poster
 
Posts: 3
Default regression analysis

Cheers Shane!

OLS stands for ordinary least squares- it's the same thing as linear
regression (LINEST).

I've been through the help thing already and it's pretty useful, but it
doesn't tell you how to deal with categorical variables in regressions.

Dummy variables are the solution to using categorical variables in
regressions- it's when you substitute binary variables for the composites of
categorical variables.

"ShaneDevenshire" wrote:

Hi,

I'm afraid I don't know what OLS is, but in the spreadsheet you can look at
the LINEST function or LOGEST. There is a fairly good help on these
functions. You can also get a couple of linear regression lines and formulas
using the chart tool.

By dummy variables do you mean some random data? If so then you have =RAND()
and RANDBETWEEN(1,100) in the spreadsheet and a random number generator in
the Analysis ToolPak.

--
Thanks,
Shane Devenshire


"usedtostata" wrote:

Hi,

I'm trying to figure out OLS regression with excel. Can anyone tell me why
the data analysis toolpak gives me ANOVA results?

Also, does anyone know an easy method for creating dummy varibles?

Thanks


  #5  
Old October 2nd, 2008, 05:00 PM posted to microsoft.public.excel.misc
usedtostata
external usenet poster
 
Posts: 3
Default regression analysis

Hey Jerry, Thanks for your reply.

About the dummies- basically if I want to recode categorical variables into
a series of binary variables, how can I do that?

Those aren't T-tests though. I thought T-tests were for testing the
difference between two means (e.g. mean height for men vs means height for
women).

Cheers.

"Jerry W. Lewis" wrote:

The ANOVA table evaluates the significance of the model as a whole, vs. the
t-tests below it in the output that evalute the significance of individual
fitted coefficients.

Can you be more specific about your dummy variable question?

Jerry

"usedtostata" wrote:

Hi,

I'm trying to figure out OLS regression with excel. Can anyone tell me why
the data analysis toolpak gives me ANOVA results?

Also, does anyone know an easy method for creating dummy varibles?

Thanks

  #6  
Old October 2nd, 2008, 06:55 PM posted to microsoft.public.excel.misc
Mike Middleton
external usenet poster
 
Posts: 653
Default regression analysis

usedtostata -

Also, does anyone know an easy method for creating dummy varibles?


For a categorical variable with two values (e.g., male or female), I use one
indicator variable, coded one or zero, indicating presence (e.g., 1 = male)
or absence (e.g., 0 = not male) of that characteristic.

For a categorical variable with k values, I use k-1 indicator variables,
each coded one or zero.

To create the one or zero data, I either (1) type the values in some of the
cells and if there's a repeating pattern I copy large blocks or (2) use an
IF function in each column if the one and zero values depend on values of an
existing categorical variable.

- Mike Middleton
http://www.DecisionToolworks.com
Decision Analysis Add-ins for Excel


"usedtostata" wrote in message
news
Hi,

I'm trying to figure out OLS regression with excel. Can anyone tell me why
the data analysis toolpak gives me ANOVA results?

Also, does anyone know an easy method for creating dummy varibles?

Thanks




  #7  
Old October 2nd, 2008, 09:50 PM posted to microsoft.public.excel.misc
Jerry W. Lewis
external usenet poster
 
Posts: 491
Default regression analysis

'There are more t-tests, Horatio, than are dreamt of in your philosophy'
(apologies to Shakespeare)

If a statistic is normally distributed, then that statistic divided by its
estimated standard error follows the t distribution with degrees of freedom
associated with the standard error estimate. In particular, if you have
independent normally distributed errors, there is a t-test for each OLS
regression coefficient. Those t-tests will rarely be independent of each
other, since the coefficent estimates are usually correlated. Those t-tests
are reported by the ATP regression tool, or can be constructed from LINEST by
dividing a coefficient by its corresponding standard error (given in the 2nd
line of LINEST output).

Jerry

"usedtostata" wrote:

Hey Jerry, Thanks for your reply.

About the dummies- basically if I want to recode categorical variables into
a series of binary variables, how can I do that?

Those aren't T-tests though. I thought T-tests were for testing the
difference between two means (e.g. mean height for men vs means height for
women).

Cheers.

"Jerry W. Lewis" wrote:

The ANOVA table evaluates the significance of the model as a whole, vs. the
t-tests below it in the output that evalute the significance of individual
fitted coefficients.

Can you be more specific about your dummy variable question?

Jerry

"usedtostata" wrote:

Hi,

I'm trying to figure out OLS regression with excel. Can anyone tell me why
the data analysis toolpak gives me ANOVA results?

Also, does anyone know an easy method for creating dummy varibles?

Thanks

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:19 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.