Statistical Procedures

Programming the statistical procedures from SAS
BookmarkSubscribeRSS Feed
saza
Quartz | Level 8

So I think I learned more about stats from this forum than my actual class and now I just want to apply what I learned through proc corr to different variables. Yesterday I was using proc reg when I later realized I should have used proc corr for this question:

Is there a relationship between gestation and baby weight? Yes, positive relationship

  1. State your null and alternative hypothesis:

     Null hypothesis:

    saza_0-1645134293962.gif

    (Where

     

    saza_1-1645134293901.gif is the population slope)

    Alternative hypothesis:

    saza_2-1645134294274.gif

    Level of significance:

    saza_3-1645134293913.gif
  2. What is the rho value for this analysis? Rho=0

  3. Make your scatter plot for this analysis, does it confirm your rho findings? Yes, I believe it does but not sure if the scatterplot proves it.

  4. Does a statically significant relationship exist between these two variables? If so, interpret:
    Yes, since the p-value of the model in the ANOVA table is p=0.001 <0.05 significant, we conclude there is a linear relationship.

saza_4-1645134424532.png

saza_5-1645134433724.png

I guess what I want to know if i'm making sense with this code and the questions asked or is there another way to do this?

I used this code: 


proc corr data=birthw.birthweight;
var gestation birthweight;
run;

 

1 REPLY 1
Reeza
Super User
If you're testing slope, regression was the correct method.
If you're testing correlation, proc corr is correct and your hypothesis doesn't align.

Both of these are methods that are taught, the actual correct approach depends on data and data usage.
But the answer as to which is the right answer your professor is expecting - so which ones have you been taught as that's likely what your professor is expecting.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 632 views
  • 2 likes
  • 2 in conversation