Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Regression with text variables

Is it possible to use excel 2003 with the Data Analysis Tools to run a
regression when the independent variables consist of text? I tried to replace
the text with numbers 1, 2, 3, ... but I don't think the results make sense.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 837
Default Regression with text variables

You need to say more. What you are trying to do is not clear.

Jerry

"Heath" wrote:

Is it possible to use excel 2003 with the Data Analysis Tools to run a
regression when the independent variables consist of text? I tried to replace
the text with numbers 1, 2, 3, ... but I don't think the results make sense.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Regression with text variables

I'm using Excel 2003 with the Data Analysis pack, which allows one to run a
linear regression on data. I think this is the same as the LINEST function.
My y-value inputs are numeric but the x-value inputs are text...an
(unrealistic) example...effect of RED HAIR (independent variable) on HEIGHT
(dependent variable). So when I enter the data, from this example, height is
numeric but hair color is text.

How do run a regression on this kind of data?

Thanks!

"Jerry W. Lewis" wrote:

You need to say more. What you are trying to do is not clear.

Jerry

"Heath" wrote:

Is it possible to use excel 2003 with the Data Analysis Tools to run a
regression when the independent variables consist of text? I tried to replace
the text with numbers 1, 2, 3, ... but I don't think the results make sense.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Regression with text variables

Can't you assign a numerical code to the hair color; i.e., red hair = 1, blue
hair = 2, etc?

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"Heath" wrote:

I'm using Excel 2003 with the Data Analysis pack, which allows one to run a
linear regression on data. I think this is the same as the LINEST function.
My y-value inputs are numeric but the x-value inputs are text...an
(unrealistic) example...effect of RED HAIR (independent variable) on HEIGHT
(dependent variable). So when I enter the data, from this example, height is
numeric but hair color is text.

How do run a regression on this kind of data?

Thanks!

"Jerry W. Lewis" wrote:

You need to say more. What you are trying to do is not clear.

Jerry

"Heath" wrote:

Is it possible to use excel 2003 with the Data Analysis Tools to run a
regression when the independent variables consist of text? I tried to replace
the text with numbers 1, 2, 3, ... but I don't think the results make sense.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 837
Default Regression with text variables

Such a numerical assignment is probably meaningless. He appears to want to
do a categorical ANOVA, where hair color would have c-1 degrees of freedom (c
is the number of colors) instead of 1 degree of freedom that would be given
by numerically coding a regression model.

If each factor (hair color, etc) has only 2 levels, assign the levels +/-1,
then you can use the ATP regression tool or LINEST to do the analysis. Each
t-test for a regression coefficient would correspond to to the usual ANOVA F
test.

If any factor has more than 2 levels, then the OP would need to construct
the appropriate X matrix, which would require more understanding than he
seems to have.

Jerry

"Dave F" wrote:

Can't you assign a numerical code to the hair color; i.e., red hair = 1, blue
hair = 2, etc?

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"Heath" wrote:

I'm using Excel 2003 with the Data Analysis pack, which allows one to run a
linear regression on data. I think this is the same as the LINEST function.
My y-value inputs are numeric but the x-value inputs are text...an
(unrealistic) example...effect of RED HAIR (independent variable) on HEIGHT
(dependent variable). So when I enter the data, from this example, height is
numeric but hair color is text.

How do run a regression on this kind of data?

Thanks!

"Jerry W. Lewis" wrote:

You need to say more. What you are trying to do is not clear.

Jerry

"Heath" wrote:

Is it possible to use excel 2003 with the Data Analysis Tools to run a
regression when the independent variables consist of text? I tried to replace
the text with numbers 1, 2, 3, ... but I don't think the results make sense.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I format a MSGBOX to show text and variables in a macro? Pank New Users to Excel 4 March 22nd 07 01:10 PM
regression AudreyJ Excel Discussion (Misc queries) 0 October 4th 06 04:32 PM
regression swissforestry Excel Worksheet Functions 1 November 10th 05 11:59 PM
Regression with more than 16 variables showcase48 Excel Discussion (Misc queries) 6 June 28th 05 01:14 PM
How do you populate the X variables in Regression analysis for mo. tjp32 Excel Worksheet Functions 1 April 4th 05 09:29 PM


All times are GMT +1. The time now is 09:40 AM.

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

About Us

"It's about Microsoft Excel"