I am trying to simulate power for the stepped wedge design using the SWSamp package. But getting errors when I try to achieve that for a binary outcome. my code is thus:
in sim.power, OR is not a parameter of the function
That means it is evaluated as ... . Read the source code and try to understand how this function should be used in your case. I know nothing about what you are doing, but OR is mentioned here and after:
And it seems that natural.scale should be TRUE or FALSE and OR is defined internaly based on b.trt