If I want to make sure about the linearity assumption
Does the relationship between categorical variable and y in any model should be nonlinear as it always has the same trend. how can the other plots help me to determine the relationship and if I need any specific type of transformation
Honestly, @shahd, I think you are headed down the wrong path here. I think you are asking meaningless questions. There is no such thing as linearity in the case where you have a categorical X variable.
Hello @shahd,
Your question requires more details before experts can help. Can you revise your question to include more information?
Review this checklist:
To edit your original message, select the "blue gear" icon at the top of the message and select Edit Message. From there you can adjust the title and add more details to the body of the message. Or, simply reply to this message with any additional information you can supply.
SAS experts are eager to help -- help them by providing as much detail as you can.
This prewritten response was triggered for you by fellow SAS Support Communities member @PGStats
.If you ask me, the idea of fitting a straight line (or any line) to your data is completely off target and wrong. You have categorical X, you want to fit an appropriate model for categorical X, which could be PROC GLM where X is in the CLASS statement.
for my understanding, the GLM for categorical y variable. Here x is the categorical I am looking to check the linearity between x and y here. Could you please advise with this
From your plots, the categorical variable is the X variable.
There is no such thing as linearity with a categorical X variable.
Honestly, @shahd, I think you are headed down the wrong path here. I think you are asking meaningless questions. There is no such thing as linearity in the case where you have a categorical X variable.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Lock in the best rate now before the price increases on April 1.
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.