[R] Ben Bolker's '‘emdbook’ Package , rbetabinom

2012-11-19 Thread arun4
Hello, I am using rbetabinom ( to generate beta binomial random variables) function available in the "emdbook"package written by Professor. Ben Bolker for my research study. I have no questions with this function. However, I am looking for the theoretical method/algorithm of the function "rbetabi

[R] Creating a frequency table for binomial varaible

2012-11-21 Thread arun4
Hello, I have simulated 30 observations from a binomial(5,0.1) distribution. Now I need to make frequency table( that means I need to tally how many 0's , 1's 2's... 5's) I know that the simple R function table() will do this, but I am afraid that some times I may get zero frequency for so

Re: [R] Ben Bolker's '‘emdbook’ Package , rbetabinom

2012-11-21 Thread arun4
I understood that from the source code. Currently I am referring the suggested articles. Thank you very much for the off-list answer and this reply. -- View this message in context: http://r.789695.n4.nabble.com/Ben-Bolker-s-emdbook-Package-rbetabinom-tp4650056p4650287.html Sent from the R h

Re: [R] Creating a frequency table for binomial varaible

2012-11-21 Thread arun4
As I have to to this in a simulation study for 1000 such binomial variables, I have created a R function as below.. Am I doing in the correct way? or is there any other simplest ways? #using a user defined function to create a frequency distribution create.freq.table<- function(x){ values<-seq(0

Re: [R] Creating a frequency table for binomial varaible

2012-11-21 Thread arun4
Thank you A.K Btw in which package count() is available? -- View this message in context: http://r.789695.n4.nabble.com/Creating-a-frequency-table-for-binomial-varaible-tp4650286p4650305.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Creating a frequency table for binomial varaible

2012-11-21 Thread arun4
Thank you Bill Dunlap . This seems very simple. -- View this message in context: http://r.789695.n4.nabble.com/Creating-a-frequency-table-for-binomial-varaible-tp4650286p4650312.html Sent from the R help mailing list archive at Nabble.com. __ R-help

[R] bbmle "Warning: optimization did not converge"

2012-11-25 Thread arun4
I am using the Ben bolker's R package "bbmle" to estimate the parameters of a binomial mixture distribution via Maximum Likelihood Method. For some data sets, I got the following warning messages: *Warning: optimization did not converge (code 1: ) There were 50 or more warnings (use warnings() to s

Re: [R] bbmle "Warning: optimization did not converge"

2012-11-25 Thread arun4
Thank you Michael Weylandt. Let me to describe my problem fully, I have developed a new discrete probability distribution which has the following Probability mas function( as an alternative to binomial distribution) Where n= number of tri

Re: [R] bbmle "Warning: optimization did not converge"

2012-11-25 Thread arun4
Sorry, x values are created as *values<- 0:7* -- View this message in context: http://r.789695.n4.nabble.com/bbmle-Warning-optimization-did-not-converge-tp4650730p4650761.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-proje

Re: [R] bbmle "Warning: optimization did not converge"

2012-11-26 Thread arun4
Thank you Uwe Ligges-3 -- View this message in context: http://r.789695.n4.nabble.com/bbmle-Warning-optimization-did-not-converge-tp4650730p4650812.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list htt