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
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?
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.
proc surveyreg data=newdata total=10; cluster Clustervariable; model yvariable=xvariable; run;
and to find only the correlation use CORR Procedure.
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!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.