cregg icon indicating copy to clipboard operation
cregg copied to clipboard

Add functions for power analysis

Open leeper opened this issue 6 years ago • 4 comments
trafficstars

Please specify whether your issue is about:

  • [ ] a possible bug
  • [ ] a question about package functionality
  • [x] a suggested code or documentation change, improvement to the code, or feature request

Power analysis and sample-size determination could be useful. Some draft code from Hainmueller et al. is here: https://www.dropbox.com/s/xdamgzwl60h1b6w/conjointpower.R?dl=0

leeper avatar Sep 19 '19 15:09 leeper

I did some super basic stuff in my cjpwr repo based on this old documentation. Don't think this is anywhere near sophisticated enough, but it exists.

mbarnfield avatar Sep 20 '19 09:09 mbarnfield

@mbarnfield What's your plan with that repo? Do you plan to put it on CRAN or maybe you'd be interested in folding something like that in to this?

leeper avatar Sep 21 '19 15:09 leeper

I'd be happy to integrate it into cregg. It definitely needs work though! If you're happy with the general approach in the Hainmueller code (which doesn't look that complex) then it might not be too much work to get cjpwr to that level, but tidier. I'm not sure what he's basing his approach on, though, and I'm not well-versed on power analysis in general.

mbarnfield avatar Sep 21 '19 17:09 mbarnfield

Other resources:

https://www.robertkubinec.com/post/conjoint_power_simulation/

https://www.brettgall.com/post/conjoint-power-simulations/

leeper avatar May 03 '20 20:05 leeper