What is the correct syntax for finding the area under the standard normal density for a particular value of z? Thanks [[alternative HTML version deleted]]
YOST Andrew wrote:> What is the correct syntax for finding the area under the standard > normal density for a particular value of z? > > Thanks >?qnorm
Sorry, ?pnorm. --sundar P.S. Thanks to the anonymous correction. Sundar Dorai-Raj wrote:> > YOST Andrew wrote: > >>What is the correct syntax for finding the area under the standard >>normal density for a particular value of z? >> >>Thanks >> > > > ?qnorm > > ______________________________________________ > 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
Lynette Sun
2005-Nov-01 22:30 UTC
[R] multidimensional integration not over a multidimensional rectangle
Hi, anyone knows about any functions in R can get multidimensional integration not over a multidimensional rectangle (not adapt). For example, I tried the following function f(x,n)=x^n/n! phi.fun<-function(x,n) { if (n==1) { x }else{ integrate(phi.fun, lower=0, upper=x, n=n-1)$value } } I could get f(4,2)=4^2/2!=8, but failed in f(4,3)=4^3/3! Thanks Best, Lynette