Re: [R] cumulative density function

About this list Date view Thread view Subject view Author view Attachment view

From: Adrian Dragulescu (adrian_d@eskimo.com)
Date: Sat 20 Mar 2004 - 01:15:37 EST


Message-id: <Pine.SUN.4.58.0403190612540.15982@eskimo.com>


Because the result is a list, you can get your number like this:
integrate(dnorm,0,2)[[1]]

You don't have an expression for the probability function? You can do
a nonlinear regression to a distribution you belive in, and then
integrate that. Or, you can calculate the experimental cdf by simple
summation.

Best,
Adrian

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Fri 23 Apr 2004 - 18:36:38 EST