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.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

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