We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Linear Regression outout problem

user345
6 - Meteoroid

Hi,

 

I have a problem when conducting the linear regression model. The report ouput didn't show me all the predictor variables I put in. For example, I choose one vairable that contains 3 category, but the output only show me two of them. I don't know whether it because Alteryx automately discounts values that have absolutely no significance? Could you help me with it? 

 

Thanks

11 REPLIES 11
MarqueeCrew
20 - Arcturus
20 - Arcturus

@user345 ,

 

i think that you are describing this:


for each of the domain values of a variable, I'm not seeing 1 value.   As an example, if the variable has {A,B,C} you only see values of {B,C}. 

this is normal.  B and C are given score values based on not being A.  

Cheers,

 

 mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
IraWatt
17 - Castor
17 - Castor

Hey @user345,

When you say "contains 3 category" do you mean that your inputting a categorical column with 3 categories in? I don't believe that the regression tool in the default configuration will remove variables if they have no significance. As shown below even if I put a random or a column full of 1's in, the model still shows their evaluation:

IraWatt_0-1650889868278.png

 

Matthew
11 - Bolide

i know this isn't the answer you're looking for, but I've always had trouble getting the LinReg tool to work for me, so i built my own..

 

it can only handle a single predictor (not multiple) and it doesn't do any statistical analysis for you, but it does draw the line of best fit for all provided values of x, even if you have null y values.. and it will output a different line for each group (works like a batch macro)

 

Matthew_0-1650893382986.png

 

 

user345
6 - Meteoroid

Hey,

 

For example, I put one variable called product category and there are three parts respectively men's shoes / women's shoes / kid's shoes. But the output only show me men's shoes and women's shoes, the kid's one disappear. Do you know why it like this?

 

user345_1-1650890893536.png

 

 

Thanks!

user345
6 - Meteoroid

Hey,

 

So I can just ignore it or I need to do something?

IraWatt
17 - Castor
17 - Castor

Probably worth investigating, I assume if you just give the model children's shoes then it will include it in the output? Have you ticked any custom options? would you be able to send a screenshot of your tool config/ sample data? 

user345
6 - Meteoroid

There is no place for me to choose which categories I want to include in the model, it include all three parts in the model i think. But only two comes out. 

 

user345_0-1650893256335.png

 

IraWatt
17 - Castor
17 - Castor

@user345  Ah ! if you click on the tool it should give you a configuration window on the left in which you can specify what your target as well as which variables to include in the model:  

IraWatt_1-1650893537490.png

 

user345
6 - Meteoroid

Yes, I chose category as one of the variables, but it just comes out 2 categories out of 3.

 

user345_0-1650894095541.png

 

Labels
Top Solution Authors