BookmarkSubscribeRSS Feed
janis
Calcite | Level 5

I am researching if pathogens are more  or less infectious on the hosts from which they have been isolated.

So there is data on, say 4 pathogen lines (path), tested for %infection success (number diseased (d)/total inoculated(tot))) on all 4 hosts (host) from which they were originally isolated. In the infection matrix, the values on the leading diagonal are pathogens on their own hosts (home=1), while off diagonal are pathogens on novel hosts (home=0).

What model statements in GENMOD would test for a leading diagonal (home vs. away) effect?

Note:

Two approaches I tried using GENMOD give very different siginificance values

Approach 1 -

Get residuals from

     Model d/tot = path host /link=logit dist=binom p  r ;

Test home vs. away raw residuals - gives significant leading diagonal effect (P<0.02).

Visual inspection and plotting shows that the 4 leading diagonal resisduals are larger than all except one of the 12 off diagonal values, and the effect "looks real".

Approach 2 -

Compare AIC and likelihood for the above model, with the following more specified model

          d/tot = path host home/link=logi dist=binom

Home has a non-siginificant (P=0.23) effect, and comaprison of model with home included gives an AIC improvement of only 0.5, and a likelihood improvement of ca. 0.7.

So approach 2 gives no evidence of a significant leading diagonal, home vs. away effect.

The data:

HostPathDHhome
1112721
1240360
1311610
1450290
21101050
2225851
2331010
2436780
31201140
3260760
33111171
3466630
41201080
4242760
4371180
4454701
1 REPLY 1
PGStats
Opal | Level 21

Hi, I assumed that Tot=D+H. After checking for interactions (home*path) and overdispersion, I arrived at the same result and conclusion as your second approach. I used proc logistic. - PG

PG

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 334 views
  • 0 likes
  • 2 in conversation