<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Simulation on ouR data generation</title>
    <link>https://www.rdatagen.net/tags/simulation/</link>
    <description>Recent content in Simulation 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>Wed, 18 Mar 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.rdatagen.net/tags/simulation/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Getting to the bottom of TMLE: targeting in action</title>
      <link>https://www.rdatagen.net/post/2026-03-18-getting-to-the-bottom-of-tmle-targeting-in-action/</link>
      <pubDate>Wed, 18 Mar 2026 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2026-03-18-getting-to-the-bottom-of-tmle-targeting-in-action/</guid>
      <description>&lt;p&gt;In the previous &lt;a href=&#34;https://www.rdatagen.net/post/2026-03-10-getting-to-the-bottom-of-tmle-2/&#34; target=&#34;_blank&#34;&gt;post&lt;/a&gt;, I worked my way through some key elements of TMLE theory as I try to understand how it all works. At its essence, TMLE is focused on getting the efficient influence function (EIF) to behave properly. When that happens, the estimator of the target parameter behaves as if it were based on a random sample from the true data-generating distribution.&lt;/p&gt;&#xA;&lt;p&gt;Estimating the outcome and treatment (or exposure) models is an important part of constructing the EIF, but they are treated as nuisance components and do not need to be perfectly specified. The targeting step can adjust for errors in these nuisance estimates, often recovering the desired empirical behavior of the EIF and improving the resulting estimate of the target parameter, even when one of the nuisance models is misspecified.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A new simstudy function to make simulating replications easier</title>
      <link>https://www.rdatagen.net/post/2025-10-07-scenario-list-facilitating-simulation-replications/</link>
      <pubDate>Tue, 07 Oct 2025 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2025-10-07-scenario-list-facilitating-simulation-replications/</guid>
      <description>&lt;p&gt;Four years ago, I &lt;a href=&#34;https://www.rdatagen.net/post/2021-03-16-framework-for-power-analysis-using-simulation/&#34; target=&#34;_blank&#34;&gt;described&lt;/a&gt; a simple framework for organizing simulations to conduct power analyses or explore the operating characteristics of modeling approaches. In that framework, I introduced a small function &lt;code&gt;scenario_list&lt;/code&gt; that generated a list of scenarios forming the basis for simulations. I had always intended to incorporate that function into &lt;code&gt;simstudy&lt;/code&gt;, and now I have finally done so The new function is available as of version &lt;code&gt;0.9.0&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This post offers a brief introduction to the function and concludes with a small simulation.&lt;/p&gt;</description>
    </item>
    <item>
      <title>An IV study design to estimate an effect size when randomization is not ethical</title>
      <link>https://www.rdatagen.net/post/2024-09-03-an-instrumental-variable-study-design-to-estimate-an-effect-size-when-randomization-may-not-be-ethical/</link>
      <pubDate>Tue, 03 Sep 2024 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2024-09-03-an-instrumental-variable-study-design-to-estimate-an-effect-size-when-randomization-may-not-be-ethical/</guid>
      <description>&lt;p&gt;An investigator I frequently consult with seeks to estimate the effect of a palliative care treatment protocol for patients nearing end-stage disease, compared to a more standard, though potentially overly burdensome, therapeutic approach. Ideally, we would conduct a two-arm randomized clinical trial (RCT) to create comparable groups and obtain an unbiased estimate of the intervention effect. However, in this case, it may be considered unethical to randomize patients to a non-standard protocol.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Generating binary data by specifying the relative risk, with simulations</title>
      <link>https://www.rdatagen.net/post/2024-07-02-generating-binary-data-by-specifying-relative-risk/</link>
      <pubDate>Tue, 02 Jul 2024 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2024-07-02-generating-binary-data-by-specifying-relative-risk/</guid>
      <description>&lt;p&gt;The most traditional approach for analyzing binary outcome data is logistic regression, where the estimated parameters are interpreted as log odds ratios or, if exponentiated, as odds ratios (ORs). No one other than statisticians (and maybe not even statisticians) finds the odds ratio to be a very intuitive statistic, and many feel that a risk difference or risk ratio/relative risks (RRs) are much more interpretable. Indeed, there seems to be a strong belief that readers will, more often than not, interpret odds ratios as risk ratios. This turns out to be reasonable when an event is rare. However, when the event is more prevalent, the odds ratio will diverge from the risk ratio. (Here is a &lt;a href=&#34;https://doi.org/10.1093/aje/kwh090&#34; target=&#34;_blank&#34;&gt;paper&lt;/a&gt; that discusses some of these issues in greater depth, in case you came here looking for more.)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Flexible simulation in simstudy with customized distribution functions</title>
      <link>https://www.rdatagen.net/post/2022-08-30-expanding-the-possibilities-of-simulation-in-simstudy-with-customized-distribution-funcdtions/</link>
      <pubDate>Tue, 30 Aug 2022 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2022-08-30-expanding-the-possibilities-of-simulation-in-simstudy-with-customized-distribution-funcdtions/</guid>
      <description>&lt;p&gt;Really, the only problem with the &lt;code&gt;simstudy&lt;/code&gt; package (😄) is that there is a hard limit to the possible probability distributions that are available (the current count is 15 - see &lt;a href=&#34;https://kgoldfeld.github.io/simstudy/articles/simstudy.html&#34; target=&#34;_blank&#34;&gt;here&lt;/a&gt; for a complete description). However, it turns out that there is more flexibility than first meets the eye, and we can easily accommodate a limitless number as long as you are willing to provide some extra code.&lt;/p&gt;&#xA;&lt;p&gt;I am going to illustrate this with two examples, first by implementing a truncated normal distribution, and second by implementing the flexible non-linear data generating algorithm that I &lt;a href=&#34;https://www.rdatagen.net/post/2022-08-09-simulating-data-from-a-non-linear-function-by-specifying-some-points-on-the-curve/&#34; target=&#34;_blank&#34;&gt;described last time&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Simulating data from a non-linear function by specifying a handful of points</title>
      <link>https://www.rdatagen.net/post/2022-08-09-simulating-data-from-a-non-linear-function-by-specifying-some-points-on-the-curve/</link>
      <pubDate>Tue, 09 Aug 2022 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2022-08-09-simulating-data-from-a-non-linear-function-by-specifying-some-points-on-the-curve/</guid>
      <description>&lt;p&gt;Trying to simulate data with non-linear relationships can be frustrating, since there is not always an obvious mathematical expression that will give you the shape you are looking for. I’ve come up with a relatively simple solution for somewhat complex scenarios that only requires the specification of a few points that lie on or near the desired curve. (Clearly, if the relationships are straightforward, such as relationships that can easily be represented by quadratic or cubic polynomials, there is no need to go through all this trouble.) The translation from the set of points to the desired function and finally to the simulated data is done by leveraging generalized additive modelling (GAM) methods, and is described here.&lt;/p&gt;</description>
    </item>
    <item>
      <title>simstudy updated to version 0.5.0</title>
      <link>https://www.rdatagen.net/post/2022-07-20-simstudy-updated-to-version-0-5-0/</link>
      <pubDate>Wed, 20 Jul 2022 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2022-07-20-simstudy-updated-to-version-0-5-0/</guid>
      <description>&lt;p&gt;A new &lt;a href=&#34;https://kgoldfeld.github.io/simstudy/index.html&#34; target=&#34;_blank&#34;&gt;version&lt;/a&gt; of &lt;code&gt;simstudy&lt;/code&gt; is available on &lt;a href=&#34;https://cran.r-project.org/web/packages/simstudy/index.html&#34; target=&#34;_blank&#34;&gt;CRAN&lt;/a&gt;. There are two major enhancements and several new features. In the “major” category, I would include (1) changes to survival data generation that accommodate hazard ratios that can change over time, as well as competing risks, and (2) the addition of functions to allow users to sample from existing data sets with replacement to generate “synthetic” data will real life distribution properties. Other less monumental, but important, changes were made: updates to functions &lt;code&gt;genFormula&lt;/code&gt; and &lt;code&gt;genMarkov&lt;/code&gt;, and two added utility functions, &lt;code&gt;survGetParams&lt;/code&gt; and &lt;code&gt;survParamPlot&lt;/code&gt;. (I did describe the survival data generation functions in two recent posts, &lt;a href=&#34;https://www.rdatagen.net/post/2022-03-15-adding-competing-risks-in-survival-data-generation/&#34; target=&#34;_blank&#34;&gt;here&lt;/a&gt; and &lt;a href=&#34;https://www.rdatagen.net/post/2022-03-29-simulating-non-proportional-hazards/&#34; target=&#34;_blank&#34;&gt;here&lt;/a&gt;.)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Simulating survival outcomes: setting the parameters for the desired distribution</title>
      <link>https://www.rdatagen.net/post/2022-02-08-simulating-survival-outcomes-setting-the-parameters-for-the-desired-distribution/</link>
      <pubDate>Tue, 08 Feb 2022 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2022-02-08-simulating-survival-outcomes-setting-the-parameters-for-the-desired-distribution/</guid>
      <description>&lt;script src=&#34;https://www.rdatagen.net/post/2022-02-08-simulating-survival-outcomes-setting-the-parameters-for-the-desired-distribution/index.en_files/header-attrs/header-attrs.js&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;The package &lt;code&gt;simstudy&lt;/code&gt; has some functions that facilitate generating survival data using an underlying Weibull distribution. Originally, I added this to the package because I thought it would be interesting to try to do, and I figured it would be useful for me someday (and hopefully some others, as well). Well, now I am working on a project that involves evaluating at least two survival-type processes that are occurring simultaneously. To get a handle on the analytic models we might use, I’ve started to try to simulate a simplified version of the data that we have.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
