<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Stan on ouR data generation</title>
    <link>https://www.rdatagen.net/tags/stan/</link>
    <description>Recent content in Stan on ouR data generation</description>
    <generator>Hugo</generator>
    <language>en</language>
    <managingEditor>keith.goldfeld@nyumc.org (Keith Goldfeld)</managingEditor>
    <webMaster>keith.goldfeld@nyumc.org (Keith Goldfeld)</webMaster>
    <lastBuildDate>Tue, 26 Oct 2021 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.rdatagen.net/tags/stan/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Sample size requirements for a Bayesian factorial study design</title>
      <link>https://www.rdatagen.net/post/2021-10-26-sample-size-requirements-for-a-factorial-study-design/</link>
      <pubDate>Tue, 26 Oct 2021 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2021-10-26-sample-size-requirements-for-a-factorial-study-design/</guid>
      <description>&lt;script src=&#34;https://www.rdatagen.net/post/2021-10-26-sample-size-requirements-for-a-factorial-study-design/index.en_files/header-attrs/header-attrs.js&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;How do you determine sample size when the goal of a study is not to conduct a null hypothesis test but to provide an estimate of multiple effect sizes? I needed to get a handle on this for a recent grant submission, which I’ve been writing about over the past month, &lt;a href=&#34;https://www.rdatagen.net/post/2021-09-28-analyzing-a-factorial-trial-with-a-bayesian-model/&#34; target=&#34;_blank&#34;&gt;here&lt;/a&gt; and &lt;a href=&#34;https://www.rdatagen.net/post/2021-10-12-analyzing-a-factorial-design-with-a-bayesian-shrinkage-model/&#34; target=&#34;_blank&#34;&gt;here&lt;/a&gt;. (I provide a little more context for all of this in those earlier posts.) The statistical inference in the study will be based on the estimated posterior distributions from a Bayesian model, so it seems like we’d like those distributions to be as informative as possible. We need to set the sample size large enough to reduce the dispersion of those distributions to a helpful level.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Analyzing a factorial design by focusing on the variance of effect sizes</title>
      <link>https://www.rdatagen.net/post/2021-09-28-analyzing-a-factorial-trial-with-a-bayesian-model/</link>
      <pubDate>Tue, 28 Sep 2021 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2021-09-28-analyzing-a-factorial-trial-with-a-bayesian-model/</guid>
      <description>&lt;p&gt;Way back in 2018, long before the pandemic, I &lt;a href=&#34;https://www.rdatagen.net/post/testing-many-interventions-in-a-single-experiment/&#34; target=&#34;_blank&#34;&gt;described&lt;/a&gt; a soon-to-be implemented &lt;code&gt;simstudy&lt;/code&gt; function &lt;code&gt;genMultiFac&lt;/code&gt; that facilitates the generation of multi-factorial study data. I &lt;a href=&#34;https://www.rdatagen.net/post/so-how-efficient-are-multifactorial-experiments-part/&#34; target=&#34;_blank&#34;&gt;followed up&lt;/a&gt; that post with a description of how we can use these types of efficient designs to answer multiple questions in the context of a single study.&lt;/p&gt;&#xA;&lt;p&gt;Fast forward three years, and I am thinking about these designs again for a new grant application that proposes to study simultaneously three interventions aimed at reducing emergency department (ED) use for people living with dementia. The primary interest is to evaluate each intervention on its own terms, but also to assess whether any combinations seem to be particularly effective. While this will be a fairly large cluster randomized trial with about 80 EDs being randomized to one of the 8 possible combinations, I was concerned about our ability to estimate the interaction effects of multiple interventions with sufficient precision to draw useful conclusions, particularly if the combined effects of two or three interventions are less than additive. (That is, two interventions may be better than one, but not twice as good.)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Drawing the wrong conclusion about subgroups: a comparison of Bayes and frequentist methods</title>
      <link>https://www.rdatagen.net/post/2021-09-14-drawing-the-wrong-conclusion-a-comparison-of-bayes-and-frequentist-methods/</link>
      <pubDate>Tue, 14 Sep 2021 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2021-09-14-drawing-the-wrong-conclusion-a-comparison-of-bayes-and-frequentist-methods/</guid>
      <description>&lt;script src=&#34;https://www.rdatagen.net/post/2021-09-14-drawing-the-wrong-conclusion-a-comparison-of-bayes-and-frequentist-methods/index.en_files/header-attrs/header-attrs.js&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;In the previous &lt;a href=&#34;https://www.rdatagen.net/post/2021-08-31-subgroup-analysis-using-a-bayesian-hierarchical-model/&#34; target=&#34;_blank&#34;&gt;post&lt;/a&gt;, I simulated data from a hypothetical RCT that had heterogeneous treatment effects across subgroups defined by three covariates. I presented two Bayesian models, a strongly &lt;em&gt;pooled&lt;/em&gt; model and an &lt;em&gt;unpooled&lt;/em&gt; version, that could be used to estimate all the subgroup effects in a single model. I compared the estimates to a set of linear regression models that were estimated for each subgroup separately.&lt;/p&gt;&#xA;&lt;p&gt;My goal in doing these comparisons is to see how often we might draw the wrong conclusion about subgroup effects when we conduct these types of analyses. In a typical frequentist framework, the probability of making a mistake is usually considerably greater than the 5% error rate that we allow ourselves, because conducting multiple tests gives us more chances to make a mistake. By using Bayesian hierarchical models that share information across subgroups and more reasonably measure uncertainty, I wanted to see if we can reduce the chances of drawing the wrong conclusions.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Subgroup analysis using a Bayesian hierarchical model</title>
      <link>https://www.rdatagen.net/post/2021-08-31-subgroup-analysis-using-a-bayesian-hierarchical-model/</link>
      <pubDate>Tue, 31 Aug 2021 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2021-08-31-subgroup-analysis-using-a-bayesian-hierarchical-model/</guid>
      <description>&lt;script src=&#34;https://www.rdatagen.net/post/2021-08-31-subgroup-analysis-using-a-bayesian-hierarchical-model/index.en_files/header-attrs/header-attrs.js&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;I’m part of a team that recently submitted the results of a randomized clinical trial for publication in a journal. The overall findings of the study were inconclusive, and we certainly didn’t try to hide that fact in our paper. Of course, the story was a bit more complicated, as the RCT was conducted during various phases of the COVID-19 pandemic; the context in which the therapeutic treatment was provided changed over time. In particular, other new treatments became standard of care along the way, resulting in apparent heterogeneous treatment effects for the therapy we were studying. It appears as if the treatment we were studying might have been effective only in one period when alternative treatments were not available. While we planned to evaluate the treatment effect over time, it was not our primary planned analysis, and the journal objected to the inclusion of the these secondary analyses.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Posterior probability checking with rvars: a quick follow-up</title>
      <link>https://www.rdatagen.net/post/2021-08-17-quick-follow-up-on-posterior-probability-checks-with-rvars/</link>
      <pubDate>Tue, 17 Aug 2021 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2021-08-17-quick-follow-up-on-posterior-probability-checks-with-rvars/</guid>
      <description>&lt;script src=&#34;https://www.rdatagen.net/post/2021-08-17-quick-follow-up-on-posterior-probability-checks-with-rvars/index.en_files/header-attrs/header-attrs.js&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;This is a relatively brief addendum to last week’s &lt;a href=&#34;https://www.rdatagen.net/post/2021-08-10-fitting-your-model-is-only-the-begining-bayesian-posterior-probability-checks/&#34;&gt;post&lt;/a&gt;, where I described how the &lt;code&gt;rvar&lt;/code&gt; datatype implemented in the &lt;code&gt;R&lt;/code&gt; package &lt;code&gt;posterior&lt;/code&gt; makes it quite easy to perform posterior probability checks to assess goodness of fit. In the initial post, I generated data from a linear model and estimated parameters for a linear regression model, and, unsurprisingly, the model fit the data quite well. When I introduced a quadratic term into the data generating process and fit the same linear model (without a quadratic term), equally unsurprising, the model wasn’t a great fit.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fitting your model is only the beginning: Bayesian posterior probability checks with rvars</title>
      <link>https://www.rdatagen.net/post/2021-08-10-fitting-your-model-is-only-the-begining-bayesian-posterior-probability-checks/</link>
      <pubDate>Mon, 09 Aug 2021 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2021-08-10-fitting-your-model-is-only-the-begining-bayesian-posterior-probability-checks/</guid>
      <description>&lt;script src=&#34;https://www.rdatagen.net/post/2021-08-10-fitting-your-model-is-only-the-begining-bayesian-posterior-probability-checks/index.en_files/header-attrs/header-attrs.js&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;Say we’ve collected data and estimated parameters of a model that give structure to the data. An important question to ask is whether the model is a reasonable approximation of the true underlying data generating process. If we did a good job, we should be able to turn around and generate data from the model itself that looks similar to the data we started with. And if we didn’t do such a great job, the newly generated data will diverge from the original.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Sample size determination in the context of Bayesian analysis</title>
      <link>https://www.rdatagen.net/post/2021-06-01-bayesian-power-analysis/</link>
      <pubDate>Tue, 01 Jun 2021 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2021-06-01-bayesian-power-analysis/</guid>
      <description>&lt;script src=&#34;https://www.rdatagen.net/post/2021-06-01-bayesian-power-analysis/index.en_files/header-attrs/header-attrs.js&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;Given my recent involvement with the design of a somewhat complex &lt;a href=&#34;https://www.rdatagen.net/post/2021-01-19-should-we-continue-recruiting-patients-an-application-of-bayesian-predictive-probabilities/&#34; target=&#34;_blank&#34;&gt;trial&lt;/a&gt; centered around a Bayesian data analysis, I am appreciating more and more that Bayesian approaches are a very real option for clinical trial design. A key element of any study design is sample size. While some would argue that sample size considerations are not critical to the Bayesian design (since Bayesian inference is agnostic to any pre-specified sample size and is not really affected by how frequently you look at the data along the way), it might be a bit of a challenge to submit a grant without telling the potential funders how many subjects you plan on recruiting (since that could have a rather big effect on the level of resources - financial and time - required.)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Finding answers faster for COVID-19: an application of Bayesian predictive probabilities</title>
      <link>https://www.rdatagen.net/post/2021-01-19-should-we-continue-recruiting-patients-an-application-of-bayesian-predictive-probabilities/</link>
      <pubDate>Tue, 19 Jan 2021 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2021-01-19-should-we-continue-recruiting-patients-an-application-of-bayesian-predictive-probabilities/</guid>
      <description>&lt;script src=&#34;https://www.rdatagen.net/post/2021-01-19-should-we-continue-recruiting-patients-an-application-of-bayesian-predictive-probabilities/index.en_files/header-attrs/header-attrs.js&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;As we evaluate therapies for COVID-19 to help improve outcomes during the pandemic, researchers need to be able to make recommendations as quickly as possible. There really is no time to lose. The Data &amp;amp; Safety Monitoring Board (DSMB) of &lt;a href=&#34;https://bit.ly/3qhY2f5&#34; target=&#34;_blank&#34;&gt;COMPILE&lt;/a&gt;, a prospective individual patient data meta-analysis, recognizes this. They are regularly monitoring the data to determine if there is a sufficiently strong signal to indicate effectiveness of convalescent plasma (CP) for hospitalized patients not on ventilation.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A Bayesian implementation of a latent threshold model</title>
      <link>https://www.rdatagen.net/post/a-latent-threshold-model-to-estimate-treatment-effects/</link>
      <pubDate>Tue, 08 Dec 2020 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/a-latent-threshold-model-to-estimate-treatment-effects/</guid>
      <description>&lt;script src=&#34;https://www.rdatagen.net/rmarkdown-libs/header-attrs/header-attrs.js&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;In the &lt;a href=&#34;https://www.rdatagen.net/post/a-latent-threshold-model/&#34; target=&#34;_blank&#34;&gt;previous post&lt;/a&gt;, I described a latent threshold model that might be helpful if we want to dichotomize a continuous predictor but we don’t know the appropriate cut-off point. This was motivated by a need to identify a threshold of antibody levels present in convalescent plasma that is currently being tested as a therapy for hospitalized patients with COVID in a number of RCTs, including those that are particpating in the ongoing &lt;a href=&#34;https://bit.ly/3lTTc4Q&#34; target=&#34;_blank&#34;&gt;COMPILE meta-analysis&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Exploring the properties of a Bayesian model using high performance computing</title>
      <link>https://www.rdatagen.net/post/a-frequentist-bayesian-exploring-frequentist-properties-of-bayesian-models/</link>
      <pubDate>Tue, 10 Nov 2020 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/a-frequentist-bayesian-exploring-frequentist-properties-of-bayesian-models/</guid>
      <description>&lt;script src=&#34;https://www.rdatagen.net/rmarkdown-libs/header-attrs/header-attrs.js&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;An obvious downside to estimating Bayesian models is that it can take a considerable amount of time merely to fit a model. And if you need to estimate the same model repeatedly, that considerable amount becomes a prohibitive amount. In this post, which is part of a series (last one &lt;a href=&#34;https://bit.ly/31kCCDV&#34; target=&#34;_blank&#34;&gt;here&lt;/a&gt;) where I’ve been describing various aspects of the Bayesian analyses we plan to conduct for the &lt;a href=&#34;https://bit.ly/31hDwB0&#34; target=&#34;_blank&#34;&gt;COMPILE&lt;/a&gt; meta-analysis of convalescent plasma RCTs, I’ll present a somewhat elaborate model to illustrate how we have addressed these computing challenges to explore the properties of these models.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Diagnosing and dealing with degenerate estimation in a Bayesian meta-analysis</title>
      <link>https://www.rdatagen.net/post/diagnosing-and-dealing-with-estimation-issues-in-the-bayesian-meta-analysis/</link>
      <pubDate>Tue, 01 Sep 2020 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/diagnosing-and-dealing-with-estimation-issues-in-the-bayesian-meta-analysis/</guid>
      <description>&lt;script src=&#34;https://www.rdatagen.net/rmarkdown-libs/header-attrs/header-attrs.js&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;The federal government recently granted emergency approval for the use of antibody rich blood plasma when treating hospitalized COVID-19 patients. This announcement is &lt;a href=&#34;https://www.statnews.com/2020/08/24/trump-opened-floodgates-convalescent-plasma-too-soon/&#34; target=&#34;_blank&#34;&gt;unfortunate&lt;/a&gt;, because we really don’t know if this promising treatment works. The best way to determine this, of course, is to conduct an experiment, though this approval makes this more challenging to do; with the general availability of convalescent plasma (CP), there may be resistance from patients and providers against participating in a randomized trial. The emergency approval sends the incorrect message that the treatment is definitively effective. Why would a patient take the risk of receiving a placebo when they have almost guaranteed access to the therapy?&lt;/p&gt;</description>
    </item>
    <item>
      <title>A Bayesian model for a simulated meta-analysis</title>
      <link>https://www.rdatagen.net/post/a-bayesian-model-for-a-simulated-meta-analysis/</link>
      <pubDate>Tue, 21 Jul 2020 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/a-bayesian-model-for-a-simulated-meta-analysis/</guid>
      <description>&lt;script src=&#34;https://www.rdatagen.net/rmarkdown-libs/header-attrs/header-attrs.js&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;This is essentially an addendum to the previous &lt;a href=&#34;https://www.rdatagen.net/post/simulating-mutliple-studies-to-simulate-a-meta-analysis/&#34; target=&#34;blank&#34;&gt;post&lt;/a&gt; where I simulated data from multiple RCTs to explore an analytic method to pool data across different studies. In that post, I used the &lt;code&gt;nlme&lt;/code&gt; package to conduct a meta-analysis based on individual level data of 12 studies. Here, I am presenting an alternative hierarchical modeling approach that uses the Bayesian package &lt;code&gt;rstan&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;div id=&#34;create-the-data-set&#34; class=&#34;section level3&#34;&gt;&#xA;&lt;h3&gt;Create the data set&lt;/h3&gt;&#xA;&lt;p&gt;We’ll use the exact same data generating process as &lt;a href=&#34;https://www.rdatagen.net/post/simulating-mutliple-studies-to-simulate-a-meta-analysis/&#34; target=&#34;blank&#34;&gt;described&lt;/a&gt; in some detail in the previous post.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Analysing an open cohort stepped-wedge clustered trial with repeated individual binary outcomes</title>
      <link>https://www.rdatagen.net/post/analyzing-the-open-cohort-stepped-wedge-trial-with-binary-outcomes/</link>
      <pubDate>Tue, 04 Feb 2020 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/analyzing-the-open-cohort-stepped-wedge-trial-with-binary-outcomes/</guid>
      <description>&lt;p&gt;I am currently wrestling with how to analyze data from a stepped-wedge designed cluster randomized trial. A few factors make this analysis particularly interesting. First, we want to allow for the possibility that between-period site-level correlation will decrease (or decay) over time. Second, there is possibly additional clustering at the patient level since individual outcomes will be measured repeatedly over time. And third, given that these outcomes are binary, there are no obvious software tools that can handle generalized linear models with this particular variance structure we want to model. (If I have missed something obvious with respect to modeling options, please let me know.)&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
