[R] How to calculate the distance between two density functions
Lucke, Joseph F
Joseph.F.Lucke at uth.tmc.edu
Fri Dec 5 21:21:56 CET 2008
In general, comparing two continuous densities is difficult because they
can differ on a set of measure 0 (i.e., at a single point) and yet have
the same distribution function.
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of Chang Jia-Ming
Sent: Friday, December 05, 2008 8:00 AM
To: r-help at r-project.org
Subject: [R] How to calculate the distance between two density functions
I wrote the following code to calculate the density functions for two
data sets, respectively.
However, I would like to knowing the difference between den_str and
den_non_str, that is, the difference between the region under the curve
of the den_str and the region under the curve of the den_non_str.
How to do?
Thank you for help.
[[alternative HTML version deleted]]
R-help at r-project.org mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help