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!!
@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.
What analysis were you thinking of?
Here's a t-test example using PROC TTEST:
ANOVA with two categories should give the exact same answer as a t-test. You can use PROC GLM.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.