Dear Statalisters,
I am trying to solve the following problem using power analysis in Stata and was hoping to get some advice.
“You are considering undertaking a pilot study of health in a population of interest, and you need to determine sample size. One indicator is systolic blood pressure (BP). Using mean and standard deviation measurements from “x.dta”, determine how large a sample you would need to be able to detect a 10 point differential between two groups (equal size) in your study, with group A having systolic BP at the level of the “x.dta” sample and Group B having BP 10 points higher. (Assume the SD of both distributions matches the x.dta overall value), at a statistical power of 0.8. Mean of BP of x.dta is 130.8817, sd is 23.33625”
In response to the above question, I wrote down 2 Stata commands.
sampsi 0 10, sd1(23.33265) sd2(23.33265) power(.8) onesided
power twomeans 130.8817, sd(23.33265) diff(10) power(0.8) onesided
I was wondering whether anyone could tell me:
1. Whether the above commands are correct
2. Whether it makes sense to use “onesided” or “twosided”
3. Why do the two commands give different values for sample size? Which one should I be using?
Thank you.
Monzur
I am trying to solve the following problem using power analysis in Stata and was hoping to get some advice.
“You are considering undertaking a pilot study of health in a population of interest, and you need to determine sample size. One indicator is systolic blood pressure (BP). Using mean and standard deviation measurements from “x.dta”, determine how large a sample you would need to be able to detect a 10 point differential between two groups (equal size) in your study, with group A having systolic BP at the level of the “x.dta” sample and Group B having BP 10 points higher. (Assume the SD of both distributions matches the x.dta overall value), at a statistical power of 0.8. Mean of BP of x.dta is 130.8817, sd is 23.33625”
In response to the above question, I wrote down 2 Stata commands.
sampsi 0 10, sd1(23.33265) sd2(23.33265) power(.8) onesided
power twomeans 130.8817, sd(23.33265) diff(10) power(0.8) onesided
I was wondering whether anyone could tell me:
1. Whether the above commands are correct
2. Whether it makes sense to use “onesided” or “twosided”
3. Why do the two commands give different values for sample size? Which one should I be using?
Thank you.
Monzur
Comment