- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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!
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content