Dear Statalist users,
I would like to perform a power/sample size calculation for a study comparing two non-normally distributed numerical variables (a numerical [integer] score ranging from 0-28).
I can't see an easy solution within stata's inbuilt commands including the "power" command.
Searching further I found a suggestion to do this using simulation in the Stata journal (The Stata Journal (2002) 2, Number 2, pp. 107–124). Running the code from page 122-3 in Stata unedited resulted in an error (‘medrat’ invalid name). I have tried altering any references to arguments and locals in the code from ‘medrat’ format to `mediate' as I thought they should be but this doesn't seem to help.
Does anyone have any tips on how to run the program presented in the Stata journal? Once I can do this I should be able to adapt it to my situation (equal group sizes and 2-tailed test). Alternatively are there any simpler solutions to my problem?
Many thanks,
Adam
I would like to perform a power/sample size calculation for a study comparing two non-normally distributed numerical variables (a numerical [integer] score ranging from 0-28).
I can't see an easy solution within stata's inbuilt commands including the "power" command.
Searching further I found a suggestion to do this using simulation in the Stata journal (The Stata Journal (2002) 2, Number 2, pp. 107–124). Running the code from page 122-3 in Stata unedited resulted in an error (‘medrat’ invalid name). I have tried altering any references to arguments and locals in the code from ‘medrat’ format to `mediate' as I thought they should be but this doesn't seem to help.
Does anyone have any tips on how to run the program presented in the Stata journal? Once I can do this I should be able to adapt it to my situation (equal group sizes and 2-tailed test). Alternatively are there any simpler solutions to my problem?
Many thanks,
Adam
Comment