How to generate count data with desired overdispersion
1
0
Entering edit mode
João Moura ▴ 160
@joao-moura-4505
Last seen 10.2 years ago
Hi, Basically the question is already made: I would like to generate count data with high/medium/low oversdispersion... Can someone help me? Thanks a lot! -- João Moura [[alternative HTML version deleted]]
• 1.3k views
ADD COMMENT
0
Entering edit mode
@davis-mccarthy-4138
Last seen 10.2 years ago
Hi Joao Have you tried the ?rnbinom function? The "size" argument to rbinom() determines the extent of overdispersion. Note that this "size" is the inverse of the dispersion parameter as used in the edgeR package (i.e. size = 1/ dispersion ). So I would consider size=1 to be high overdispersion, size=5 to be medium and size > 100 to be low overdispersion. Hope that helps get you started. Cheers Davis On Jul 6, 2011, at 1:22 AM, Jo?o Barbosa wrote: > Hi, > > Basically the question is already made: I would like to generate count data > with high/medium/low oversdispersion... Can someone help me? > > Thanks a lot! > > -- > Jo?o Moura > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor at r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor ---------------------------------------------------------------------- -- Davis J McCarthy Research Technician Bioinformatics Division Walter and Eliza Hall Institute of Medical Research 1G Royal Parade, Parkville, Vic 3052, Australia dmccarthy at wehi.edu.au http://www.wehi.edu.au ______________________________________________________________________ The information in this email is confidential and intend...{{dropped:6}}
ADD COMMENT

Login before adding your answer.

Traffic: 512 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6