From: kavindra malik <kavindra_malik_at_yahoo.com>

Date: Wed, 13 Jun 2007 13:04:36 -0700 (PDT)

Sucker-punch spam with award-winning protection.

R-help_at_stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 13 Jun 2007 - 20:11:17 GMT

Date: Wed, 13 Jun 2007 13:04:36 -0700 (PDT)

I am interested in R functions for the following integrals / sums (expressed best I can in text) -

Normal: G_u(k) = Integration_{Lower limit=k}^{Upper limit=infinity} [(u -k) f(u) d(u)], where where u is N(0,1), and f(u) is the density function.

Poisson: G(lambda,k) = Sum_{Lower limit=k}^{Upper limit=infinity} [(x-k) p(x, lambda)] where P(x,lambda) is the Poisson prob function with parameter lambda.

The Normal expression is very commonly used in inventory management to determine safety stocks (and its tabular values can be found in some texts) - and I am also looking for Poisson and/or Gamma as that'd fit the situation better.

I am wondering if there are standard functions in R that might allow me to get these values, instead of needing to do the numerical integration, etc. myself.

Thank you very much. ---------------------------------

Sucker-punch spam with award-winning protection.

[[alternative HTML version deleted]]

R-help_at_stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 13 Jun 2007 - 20:11:17 GMT

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.2.0, at Wed 13 Jun 2007 - 22:32:01 GMT.

*
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help.
Please read the posting
guide before posting to the list.
*