BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
MonoLight
Obsidian | Level 7

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!

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

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).

View solution in original post

2 REPLIES 2
FreelanceReinh
Jade | Level 19

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).

MonoLight
Obsidian | Level 7
Ahha!!! Thanks! I thought CLASS should include every independent variables! Thanks again!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is ANOVA?

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.

Discussion stats
  • 2 replies
  • 420 views
  • 1 like
  • 2 in conversation