[英]How do you conduct a power analysis for logistic regression in R?
我熟悉G * Power作为功率分析的工具,但还没有在互联网上找到一个资源来描述如何为R中的逻辑回归计算功效分析.pwr包没有将逻辑回归列为选项。
You will very likely need to "roll your own". 你很可能需要“自己动手”。
And then think some more about whether all your assumptions really make sense. 然后再考虑一下你的所有假设是否真的有意义。 Vary them a bit. 稍微改变一下。 Is the resulting value of n sensitive to your assumptions? 结果值是否对您的假设敏感?
Yes, this will be quite a bit of work. 是的,这将是相当多的工作。 But it will be worth it. 但这是值得的。 On the one hand, it will keep you from running an over- or underpowered study. 一方面,它将阻止你进行过度或不足的研究。 On the other hand, as I wrote, this will force you to think deeply about your assumptions, and this is the path to enlightenment. 另一方面,正如我所写,这将迫使你深入思考你的假设,这是通向启蒙的道路。 (Which is a painful path to travel. Sorry.) (这是一条痛苦的旅行之路。抱歉。)
If you don't get any better answers specifically helping you to do this in R, you may want to look to CrossValidated for more help. 如果您没有得到任何更好的答案,特别是在R中帮助您执行此操作,您可能需要查看CrossValidated以获得更多帮助。 Good luck! 祝好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.