+ Reply to Thread
Results 1 to 5 of 5

Thread: Adjusting for covariates in correlation test

  1. #1
    Points: 105, Level: 2
    Level completed: 10%, Points required for next Level: 45

    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Adjusting for covariates in correlation test




    Hi,

    I wonder if it is possible to adjust for covariates when we use PROC CORR (correlation test) in SAS.

    Thanks!

  2. #2
    Omega Contributor
    Points: 36,749, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Activity Award
    hlsmith's Avatar
    Location
    Not Ames, IA
    Posts
    6,830
    Thanks
    392
    Thanked 1,158 Times in 1,119 Posts

    Re: Adjusting for covariates in correlation test

    You can likely do a partial correlation.

    What is the purpose of doing this andwhy would it be preferred over multiple linear regression?
    Stop cowardice, ban guns!

  3. #3
    Points: 105, Level: 2
    Level completed: 10%, Points required for next Level: 45

    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Adjusting for covariates in correlation test

    Thanks for your reply.

    I am going to report some spearman correlations statistics. I know age and BMI influences my reported correlations, so I want to adjust for these two.

  4. #4
    Omega Contributor
    Points: 36,749, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Activity Award
    hlsmith's Avatar
    Location
    Not Ames, IA
    Posts
    6,830
    Thanks
    392
    Thanked 1,158 Times in 1,119 Posts

    Re: Adjusting for covariates in correlation test

    This seems to work, I tried it and added spearman in the top line:


    Code: 
    proccorrdata=cf_combo_2 spearman plots=scatter(alpha=.20.30);
    See link for description, image part may be irrelevant and based on Pearson. So I am not saying this IS the answer, you may need to double check to make sure it is really doing what I am presuming it is. You could run it with and with out the partial syntax part and see if you get the same results given the partial variable is truly correlated with the variables.


    http://support.sas.com/documentation...examples12.htm
    Stop cowardice, ban guns!

  5. The Following User Says Thank You to hlsmith For This Useful Post:

    ondansetron (05-19-2017)

  6. #5
    Points: 105, Level: 2
    Level completed: 10%, Points required for next Level: 45

    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Adjusting for covariates in correlation test


    I have another question. I appreciate your help in advance.

    I would like to look at the correlation of a hormone level (continuous variable) and a genotype activity (categorical variable with the following levels:COMT-low, COMT-high, and COMT-intermediate). How should I do this in SAS?
    PS I have done the polyserial correlation but that doesn't make sense to me!

+ Reply to Thread

           




Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats