I am wondering is there a command to get precision estimates for a sample size. I’ve been doing these by hand based on available SDs reported in the literature by country, but I was hoping this could essentially be automated in Excel/Stata/R.
Currently, I’m aiming for a 95% CI for mean total direct cost. Which gives me a raw margin of error +/- over different sample sizes. I’ve found lots of previous published work which takes the view from the opposite side and calculates the required sample size, rather than the change in MOE over differing sample sizes.
Most of the literature will refer to power and sample size, which isn’t relevant in my case for now as I’m not aiming to compare means within the sample. Our aim is to have a sample size what will reflect a precise (or as precise as we can make it) measurement of the variable of interest
Currently, I’m aiming for a 95% CI for mean total direct cost. Which gives me a raw margin of error +/- over different sample sizes. I’ve found lots of previous published work which takes the view from the opposite side and calculates the required sample size, rather than the change in MOE over differing sample sizes.
Most of the literature will refer to power and sample size, which isn’t relevant in my case for now as I’m not aiming to compare means within the sample. Our aim is to have a sample size what will reflect a precise (or as precise as we can make it) measurement of the variable of interest
Comment