<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Best Procedure and Model for a prevalence and risk factor study of bovine coronavirus on dairies in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Best-Procedure-and-Model-for-a-prevalence-and-risk-factor-study/m-p/916257#M83317</link>
    <description>&lt;P&gt;Calling&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13758"&gt;@lvm&lt;/a&gt;&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2024 05:36:40 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-02-15T05:36:40Z</dc:date>
    <item>
      <title>Best Procedure and Model for a prevalence and risk factor study of bovine coronavirus on dairies</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-Procedure-and-Model-for-a-prevalence-and-risk-factor-study/m-p/916043#M83310</link>
      <description>&lt;P&gt;I am working on a large study of bovine coronavirus (BCoV) in dairies. I have sampled around 125 dairies around Europe, and I have taken samples from calves for virus isolation (5-20 calves per dairy = 1300 samples). I want to determine risk factors for a calf being positive for BCoV and have thus developed logistic models in genmod and glimmix.In this example, the predictive variable is if the cows are vaccinated against BCoV. I have previously worked with logistic GEE models in proc genmod, and now want to understand glimmix a bit better. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have run univariate of all variables (100+ variables), and thereafter I ran a univariate with all models in genmod with repeated measures on farm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title2 'NEONATAL calves- % virus+';&lt;BR /&gt;title3 'Genmod: GEE univariate analysis, marginal';&lt;BR /&gt;proc genmod data=neonatal_calf desc ;&lt;BR /&gt;class farm country BCoV_dam_vacc(ref='no') / param=ref;&lt;BR /&gt;model virus_fn = BCoV_dam_vacc &lt;BR /&gt;/alpha = 0.05 link=logit dist=bin;&lt;BR /&gt;repeated subject = farm;&lt;BR /&gt;run; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run this conditional model in glimmix I get similar very non-significant results:&lt;/P&gt;
&lt;P&gt;Title3 'NEONATAL calves- % virus+';&lt;BR /&gt;title4 'Glimmix - population average, marginal';&lt;BR /&gt;proc glimmix data=neonatal_calf ic=q or noitprint ;&lt;BR /&gt;nloptions maxiter = 100;&lt;BR /&gt;class farm country BCoV_dam_vacc(ref='no') ;&lt;BR /&gt;model virus_fn(descending) = BCoV_dam_vacc &lt;BR /&gt;/distribution = binary link = logit alpha=0.05;&lt;BR /&gt;random intercept / subject=farm;&lt;BR /&gt;covtest /wald;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when I run this marginal model I get the outcomes to be much more significant.&lt;/P&gt;
&lt;P&gt;random _residual_ / subject=farm SOLUTION CL type=vc;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am a bit confused about the most appropriate model, and how to code the random effect of farm.&lt;/P&gt;
&lt;P&gt;When i look at the distribution of BCoV positive calves (events) in the farms, there are 58% of the farms where I do not find any positive calves.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then i tried another model approach with looking at the proportion of calves positive in a farm:&lt;/P&gt;
&lt;P&gt;proc glimmix data=neonatal_calf;&lt;BR /&gt;class farm country BCoV_dam_vacc(ref='no');&lt;BR /&gt;model NCBCoV/NCtotal =BCoV_dam_vacc / solution;&lt;BR /&gt;random farm; run;&lt;/P&gt;
&lt;P&gt;Then the model specifies:&lt;/P&gt;
&lt;P&gt;Number of Observations Read 1338 &lt;BR /&gt;Number of Observations Used 1138 &lt;BR /&gt;Number of Events 4327 &lt;BR /&gt;Number of Trials 16974 &lt;/P&gt;
&lt;P&gt;Why do I get some many events and trials from the 1338 calves in the study?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am grateful for any advice and tips to move this analysis forward.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards, Cat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 12:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-Procedure-and-Model-for-a-prevalence-and-risk-factor-study/m-p/916043#M83310</guid>
      <dc:creator>AnnaB</dc:creator>
      <dc:date>2024-02-14T12:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Best Procedure and Model for a prevalence and risk factor study of bovine coronavirus on dairies</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-Procedure-and-Model-for-a-prevalence-and-risk-factor-study/m-p/916257#M83317</link>
      <description>&lt;P&gt;Calling&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13758"&gt;@lvm&lt;/a&gt;&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 05:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-Procedure-and-Model-for-a-prevalence-and-risk-factor-study/m-p/916257#M83317</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-02-15T05:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Best Procedure and Model for a prevalence and risk factor study of bovine coronavirus on dairies</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-Procedure-and-Model-for-a-prevalence-and-risk-factor-study/m-p/916502#M83327</link>
      <description>&lt;P&gt;For the first question, I have a hunch that it might be due to a change in the denominator degrees of freedom as you have moved farm from a G side effect to an R side effect. Also, consider that the results for the F value do change when you go from an all G side parameterization to a G and R parameterization. Walt Stroup's text covers what could be happening with your situation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second part about why the number of events and trials differ so greatly between the two approaches is harder to answer. I am not sure how your data are structured, but I think that may be part of what is happening. For things like this, I have always trusted what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60873"&gt;@jiltao&lt;/a&gt;&amp;nbsp;has said, and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/439735"&gt;@Mike_N&lt;/a&gt;&amp;nbsp; has made some great comments recently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 16:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-Procedure-and-Model-for-a-prevalence-and-risk-factor-study/m-p/916502#M83327</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2024-02-16T16:08:34Z</dc:date>
    </item>
  </channel>
</rss>

