Re: [R] Declaring a density function with for loop

2012-07-08 Thread chamilka
Thank you very much Professor. David L Carlson .. This method saves my time!! -- View this message in context: http://r.789695.n4.nabble.com/Declaring-a-density-function-with-for-loop-tp4635699p4635795.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] Declaring a density function with for loop

2012-07-07 Thread David L Carlson
TX 77843-4352 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of chamilka > Sent: Saturday, July 07, 2012 10:21 AM > To: r-help@r-project.org > Subject: Re: [R] Declaring a density function with for loop >

Re: [R] Declaring a density function with for loop

2012-07-07 Thread chamilka
Thank you very much for you kind explanation Berend Hasselman!! Is it possible to declare this probability density function without looping? -- View this message in context: http://r.789695.n4.nabble.com/Declaring-a-density-function-with-for-loop-tp4635699p4635720.html Sent from the R help maili

Re: [R] Declaring a density function with for loop

2012-07-07 Thread Berend Hasselman
chamilka wrote > > I have an extended binomial distribution which has the following form: > > http://r.789695.n4.nabble.com/file/n4635699/kb.png > > Here alpha and beta are two parameters and x=0,1,2,3,...n (alike the > binomial distribution) > I am writing a function to find out the densit

[R] Declaring a density function with for loop

2012-07-07 Thread chamilka
I have an extended binomial distribution which has the following form: http://r.789695.n4.nabble.com/file/n4635699/kb.png Here alpha and beta are two parameters and x=0,1,2,3,...n (alike the binomial distribution) I am writing a function to find out the densities (probabilities) of this distri