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).
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
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.