Obsidian | Level 7

## Bivariate analyses

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User

## Re: Bivariate analyses

T test PROC TTEST
or Non-parameter version of t-test
Wilconx test by PROC N1PARAM .
10 REPLIES 10
Diamond | Level 26

## Re: Bivariate analyses

@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
Obsidian | Level 7

## Re: Bivariate analyses

The categorical variable only has two categories so I was thinking not ANOVA
Diamond | Level 26

## Re: Bivariate analyses

What analysis were you thinking of?

--
Paige Miller
Obsidian | Level 7

## Re: Bivariate analyses

Maybe a one sample t-test? Not 100% sure
Diamond | Level 26

## Re: Bivariate analyses

Obsidian | Level 7

## Re: Bivariate analyses

Thank you!

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

Diamond | Level 26

## Re: Bivariate analyses

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

--
Paige Miller
Super User

## Re: Bivariate analyses

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

## Re: Bivariate analyses

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-...
Obsidian | Level 7

## Re: Bivariate analyses

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