[R] Need help write a function
Sundar Dorai-Raj
sundar.dorai-raj at pdf.com
Tue Oct 11 20:35:08 CEST 2005
Jan Sabee wrote:
> Dear all,
> I am still learning R with write a small function for my self.
> I was wondering if someone can help me to write a R function formula below:
> Z_k (x) = \sum_{i=0}^{i=k} \binom{n}{i} (m-1)^i
> Thanks a million in advance,
>
> Sincerely,
> Jan Sabee
>
(This smells like a homework problem.)
What is "m"? Your Z_k is a function of "x" and there is no "x" on the RHS.
Are you trying to re-write "pbinom"?
--sundar
More information about the R-help
mailing list