Closed mikelove closed 10 years ago
admittedly not 'typical' enough for rnbinom man page :)
Great point. We'll think about this a bit more: on the one hand, I think it makes a lot of sense to call 1/size the dispersion parameter, for the reason you mention (increased dispersion --> increased variance). On the other hand, I'd like to stay consistent with rnbinom.
yes, it's unfortunately inconsistent. DESeq, edgeR, Cuffdiff / CummeRbund, baySeq use disp=1/size though, so you might want to warn users.
Parameter has been re-named to "size" via this commit to avoid confusion with dispersion parameterization. Thanks for the suggestion!
Typically dispersion of a negative binomial is 1/size for the size arg of the rnbinom function.
This way, for fixed mu, larger dispersion corresponds to larger variance.
If you accept this change you'd have to fix the man pages for NB and simulate_experiment.