Hi! I have several variables with different scale types for independent variables.
There are variables with nominal scales, so I tried to use glm procedure with solution in model. like,
Proc glm data=pilot.pilot3;
class Purpose Categories Twitter_Posts Twitter_Retweets News_Posts;
model Points = Purpose Categories Twitter_Posts Twitter_Retweets News_Posts / solution;
But as you noticed in that code, I have ratio variables like 'Twitter Posts', 'Twitter_Retweets', and 'News_Posts'. You can expect to see hundreds of dummy variables will be created when I use solution in model.
So... I want to ask that if there is any way to apply solution in just Purpose and Categories, while it doesn't affect other ratio variables.
Or if you have any better idea to analyze an influence of those variables, please feel free to help me 😄
Thanks in advance!
Hi @MonoLight,
@MonoLight wrote:
I have ratio variables like 'Twitter Posts', 'Twitter_Retweets', and 'News_Posts'.
Just remove these from the CLASS statement, which is for categorical variables only. (Cf. Example 48.4 in the PROC GLM documentation).
Hi @MonoLight,
@MonoLight wrote:
I have ratio variables like 'Twitter Posts', 'Twitter_Retweets', and 'News_Posts'.
Just remove these from the CLASS statement, which is for categorical variables only. (Cf. Example 48.4 in the PROC GLM documentation).
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.