<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>power analysis | Jesper N. Wulff</title><link>https://jespernwulff.github.io/tags/power-analysis/</link><atom:link href="https://jespernwulff.github.io/tags/power-analysis/index.xml" rel="self" type="application/rss+xml"/><description>power analysis</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><image><url>https://jespernwulff.github.io/media/icon_hu_c98bc1085d22e9da.png</url><title>power analysis</title><link>https://jespernwulff.github.io/tags/power-analysis/</link></image><item><title>powerape</title><link>https://jespernwulff.github.io/software/powerape/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jespernwulff.github.io/software/powerape/</guid><description>&lt;p&gt;In a probit or logit model the coefficient is not the quantity anyone interprets: conclusions are stated in probability points, as the average partial effect (APE) or, for a moderation question, the average interaction effect (AIE). &lt;code&gt;powerape&lt;/code&gt; takes the effect in those units and answers the practical question: &lt;em&gt;how many observations do I need to show an effect of, say, five percentage points?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;It simulates the whole study (draw the data, fit the model, compute the effect with a delta-method confidence interval) and reports power for three claims on that interval (Riesthuis, 2024): that the effect exceeds the smallest effect size of interest, that it differs from zero, or that it is too small to matter. It also gives required sample sizes, minimum detectable effects, robustness sweeps over contextual assumptions, and justified alpha levels.&lt;/p&gt;
&lt;p&gt;The R package and the Stata command implement the same procedure and share one &lt;a href="https://jespernwulff.github.io/powerape/" target="_blank" rel="noopener"&gt;documentation site&lt;/a&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# R
# install.packages(&amp;quot;remotes&amp;quot;)
remotes::install_github(&amp;quot;jespernwulff/powerape&amp;quot;)
* Stata (16 or later)
net install powerape, from(&amp;quot;https://raw.githubusercontent.com/jespernwulff/powerape-stata/main/&amp;quot;)
mata: mata mlib index
&lt;/code&gt;&lt;/pre&gt;</description></item></channel></rss>