I'm working on an assignment and am VERY new to stata and just wondering if I'm headed in the right direction.
I am given a problem with two groups and told to use sampsi to find the estimated required sample sizes. I am given a SD change, minimum sample size and alpha error and beta error.
I'm just wondering if I'm headed in the right direction as I am given the answer to what the sample size should be but simply have to show the correct command to how I got my answer. So far, I have done the following:
* .2= sd change
*p(.8) = account in betta error of .2
*alpha(.05) = alpha error
But the n1 and n2 are very off. I am given the required sample size and an allowance for % loss of follow up. I'm wondering if I need to add a pre and post option and possibly r0 r1 r01.
I am given a problem with two groups and told to use sampsi to find the estimated required sample sizes. I am given a SD change, minimum sample size and alpha error and beta error.
I'm just wondering if I'm headed in the right direction as I am given the answer to what the sample size should be but simply have to show the correct command to how I got my answer. So far, I have done the following:
Code:
sampsi 0 .2, p(0.8) alpha(0.05)
*p(.8) = account in betta error of .2
*alpha(.05) = alpha error
But the n1 and n2 are very off. I am given the required sample size and an allowance for % loss of follow up. I'm wondering if I need to add a pre and post option and possibly r0 r1 r01.
Comment