BookmarkSubscribeRSS Feed
Ana
Fluorite | Level 6 Ana
Fluorite | Level 6

Dear All,

 

I'm new to this area and I need your help!


In order to study the relation between mortality [ 0 (survived) or 1 (died)] that 68 strains produced and the test (I to X), I have applied an univariable logistic regression analysis with proc genmod. So far so good.

 

proc genmod data=data descend;
    class Strain Test;
    model Mortality= Strain Test/ dist= binomial link= logit type3 noint aggregate;
    lsmeans Strain Test/diff;
run;

Now, I need help with the following. I want to assess the associations between the mortality with the ERIC-PCR results (clusters for each strain, from 1 to 7) and one sequence type (ST) of the strains (binomial variable; 0 = absence and 1=presence).

 

How I could get the correlation between the mortality and the clusters?

To the association between mortality and the sequence type (ST), I have attempted using the next procedures, and I have achieved the same result, but I am not sure if it is right:

 

proc genmod data=data descend;
    class ST;
    model Mortality= ST / dist= binomial link= logit type3 noint aggregate;
    lsmeans ST /diff;
run;

 

proc anova data=data plots(maxpoints=none);
    class ST82;
    model porcent*=St82;
    means ST82/ Bon;
run;
* porcent = number of subjects dead/number of subjects used per strain (in porcent)


proc ttest data=data;
    class ST;
    var porcent;
run;

I would appreciate some help with the correct syntax for this question...

Thanks in advance!

Ana

6 REPLIES 6
pearsoninst
Pyrite | Level 9
Use

proc genmod data=data CORR descend;
Ana
Fluorite | Level 6 Ana
Fluorite | Level 6

Dear pearsoninst,

Thank you very much for your help.

Unfortunately, CORR is considered a syntax error and therefore it is ignored.

Do you have any other suggestions or idea?

pearsoninst
Pyrite | Level 9
I am very sorry , i did not realize you are are using genmod . I i thought it is Proc REG . Corr works for that ..I have not idea on Genmod. Very sorry
Ana
Fluorite | Level 6 Ana
Fluorite | Level 6

Thank you all the same!
If you know, how I could get the correlation between the mortality (binary variable) and the clusters with the Proc REG is also well received.

pearsoninst
Pyrite | Level 9
proc surveyreg data=newdata total=10;
   cluster Clustervariable;
   model yvariable=xvariable;
run;

 

and to find only the correlation use CORR Procedure.

Ana
Fluorite | Level 6 Ana
Fluorite | Level 6

Thank you for your suggestion dear pearsoninst!

 

I don't know the proc surveyreg but I will prove it!
About proc CORR, what would be the best correlation coefficient to analyze my data?

Thank you in advance!

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 6 replies
  • 995 views
  • 0 likes
  • 2 in conversation