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

Best way to do a bivariate analysis of one categorical variable (two categories) and one continuous?? One sample.

 

Looking to compare means, standard deviations, and p-values.

 

Would appreciate which proc procedure to use.

 

Thanks in advance!!

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User
T test PROC TTEST
or Non-parameter version of t-test
Wilconx test by PROC N1PARAM .

View solution in original post

10 REPLIES 10
PaigeMiller
Diamond | Level 26

@stephanicurry wrote:

Best way to do a bivariate analysis of one categorical variable and one continuous??

 

Looking to compare means, standard deviations, and p-values.

Comparing means sounds like Analysis of Variance, where you compare the mean of the continuous variable across the categories of the categorical variable. There are assumptions I am making. But I'd rather have you explain in a lot more detail what you want, instead of me  guessing what you want.

--
Paige Miller
stephanicurry
Obsidian | Level 7
The categorical variable only has two categories so I was thinking not ANOVA
PaigeMiller
Diamond | Level 26

What analysis were you thinking of?

--
Paige Miller
stephanicurry
Obsidian | Level 7
Maybe a one sample t-test? Not 100% sure
stephanicurry
Obsidian | Level 7
Thank you!

Can I use ANOVA with only two categories? and if I do, would I use proc glm?

PaigeMiller
Diamond | Level 26

ANOVA with two categories should give the exact same answer as a t-test. You can use PROC GLM.

--
Paige Miller
Ksharp
Super User
T test PROC TTEST
or Non-parameter version of t-test
Wilconx test by PROC N1PARAM .
Reeza
Super User
You need a hypothesis first usually.

Here's examples of common statistical analysis options:
https://stats.idre.ucla.edu/sas/whatstat/what-statistical-analysis-should-i-usestatistical-analyses-...
stephanicurry
Obsidian | Level 7
Thank you!

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 10 replies
  • 3791 views
  • 2 likes
  • 4 in conversation