6

Nice experiment. The blue lines will be at $\mu \pm z_{\alpha/2} \sigma/\sqrt{n}$ where $\alpha = 0.05$ and $\alpha \mapsto z_\alpha$ is the upper quantile function of the standard normal and $n$ is sample_size_. In this case, this is exact since you are generating from the normal distribution and the sample mean will have the distribution $N(\mu, \sigma^2/...


2

A parallel-group randomized trial is design to compare parallel groups, not to compare change from baseline. You need to be using ANCOVA with Y=post score and X=baseline score. Change from baseline assumes linearity and a slope of 1.0 for post-pre. In depression studies I've seen strong nonlinearity. The most general analysis that is powerful is a ...


2

Assuming treatment and control 3-month differences are nearly normally distributed, you want a power and sample size computation for a two-sample t test. In order to get the sample size for each group you need the following: Approximate variance of data in the two groups, Significance level of the test [5% ?], Size of difference you want to detect, power (...


2

In this analysis we will assume that we are making an inference about the population by forming the Welch-T confidence interval for the population mean, which is the standard interval estimator. We will first set out the form of that interval estimator for the present problem and we will then show how we can "optimise" the sample allocation ...


2

In order to find sample size, in addition to the difference in proportions (given as .02), you need significance level (I suppose 5%) and desired power (let's say 80% or 90%). You do not state a target power, nor give enough explanation along with your computations to make your strategy clear (not to me, anyhow). So I can't say how to simplify your approach. ...


1

Q1. Would it be fine to conduct sample size calculation using simple ANOVA-based power analysis (like G*Power)? In this case, the random-effect won't be considered, and was wondering if this is important. If it is important, how much difference in sample size would it make? If it is not important, why? No, it is not fine to ignore the random effects. The ...


Only top voted, non community-wiki answers of a minimum length are eligible