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-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!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

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