1. K

    Calculating sample size for non-inferiority trial using Stata cii

    Hi, can I use Stata command cii to calculate the sample size required if I want to test that fasting TG is not lower than non-fasting TG by 0.2mmol/l? Given mean=1.4, sd=0.5, 95% confidence level. What is the exact command? How do I calculate sample size if I want to test for equivalence of...
  2. E

    Syntax and formula for the 99% confidence interval for a proportion

    According to: The 99% confidence interval for 23 out of 125 is: +-8.93, where observed proportion is 23/125=18.4%. When I try and replicate this in Stata, with reference to this...