BookmarkSubscribeRSS Feed
knjohns0
Calcite | Level 5

Can I use proc glm or linear regression comparison between to groups?

3 REPLIES 3
PaigeMiller
Diamond | Level 26

Typically this would only be done via PROC GLM and not REG. That is, if I understand the problem properly, where "to [sic] groups" indicates a classification variable is used as the independent (or predictor, or X) variable, such as groups like "male" and "female".

--
Paige Miller
PGStats
Opal | Level 21

If your comparison between two groups involves a single variable, use proc glm. Regression is for looking at the relationship between different variables.

 

Examples:

 

Comparing the weights of men and women : proc glm

Looking at the relationship between weight and height : regression (proc reg)

 

In SAS, there are also many other procedures for addressing both these tasks.

PG
knjohns0
Calcite | Level 5

Then I am looking for proc reg, 

 

Thanks.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 470 views
  • 0 likes
  • 3 in conversation