Skip to content

Why does the curve() doesn't work for negative binomial distribution?

3 messages · 郝立亚, Arun Kumar Saha, Matthieu Stigler

#
I am quite sure that, the 1st reply (other that this!) you would get is to
post this in R-forum.
_____________________________________________________

Arun Kumar Saha, FRM
QUANTITATIVE RISK AND HEDGE CONSULTING SPECIALIST
Visit me at: http://in.linkedin.com/in/ArunFRM
_____________________________________________________

--
View this message in context: http://r.789695.n4.nabble.com/Why-does-the-curve-doesn-t-work-for-negative-binomial-distribution-tp3664440p3665003.html
Sent from the Rmetrics mailing list archive at Nabble.com.
#
the second reply is that to analyse the output of the warnings: they 
tell you the function is evluated at non-integers value.

A solution is then to specify yourself the values, making sure the 
sequence has only integers, like for example:
curve(dbinom(x, size=6, prob=0.3), from=1, to=50,n=50)

Mat

Le 13/07/2011 15:22, Arun.stat a ?crit :