[R] Kullback Leibler Divergence

2008-10-19 Thread Lavan
he same point or not? Thanks, Lavan -- View this message in context: http://www.nabble.com/Kullback-Leibler-Divergence-tp20056359p20056359.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.c

[R] bivariate uniform density estimation

2008-10-16 Thread Lavan
Dear R users, I have two uniform random variables and I need to estimate the joint density. I like to know whether there is any package which estimates bivariate uniform densities. Thanks, Lavan -- View this message in context: http://www.nabble.com/bivariate-uniform-density-estimation

[R] legend

2008-10-14 Thread Lavan
Hi R users, I'm trying to have the symbols for sigma[1] in my legend. the code is given below, please have a look. Thanks, lavan legend("bottom",legend=paste("Sigma1=", c(0.01,0.1,0.2,0.5,1,1.5,2,4,6,9.5), sep=""), fill=c("red","gre

[R] difference between sm.density() and kde2d()

2008-10-04 Thread Lavan
difference between the kde2d and sm.density estimates? if there is a difference, then which is the best estimate? Thank you, lavan -- View this message in context: http://www.nabble.com/difference-between-sm.density%28%29-and-kde2d%28%29-tp19818014p19818014.html Sent from the R help mailing list

[R] Point of intersection

2008-10-02 Thread Lavan
,type='l') abline(0.07,0.01) you can see that the curves intersects at 3 points. My question is how do I mark the point of the intersection? I like to mark it as (x1,y1) as the first point of intersection and so on. or I can just mark the x-coordinate of the 1st intersection as x1 on t

[R] density estimate

2008-09-28 Thread Lavan
Hi, I have a vector or random variables and I'm estimating the density using "bkde" function in the KernSmooth package. The out put contains two vectors (x and y), and the R documentation calls y as the density estimates, but my y-values are not exact density etstimates (since these are numbers l

Re: [R] densities with overlapping area of 0.35

2008-09-09 Thread Lavan
to an overlapping area of 0.35. Thank you, Lavan Lavan wrote: > > Hi, > > I like to generate two normal densities such that the overlapping area > between them is 0.35. Is there any code/package available in R to do > that?? > > Regards, > > Lavan > --

[R] Overlapping Area

2008-09-08 Thread Lavan
Hi, I'm calculating the KL Divergence measure between two distributions and like to know the KLD measure corresponding to an overlap of certain value(example 0.35). Is there any package in R which calculates the overlapping area between two densities/curves. Thanks -- View this message in cont

[R] densities with overlapping area of 0.35

2008-09-08 Thread Lavan
Hi, I like to generate two normal densities such that the overlapping area between them is 0.35. Is there any code/package available in R to do that?? Regards, Lavan -- View this message in context: http://www.nabble.com/densities-with-overlapping-area-of-0.35-tp19384741p19384741.html Sent

Re: [R] derivatives in R

2008-03-24 Thread Lavan
hi thanks, pls see the code below. the elements of matrix Il should be the derivatives in matrix h (in Boldface) plus some additional terms, here I did calculate derivatoves in the matrix, but I want R to calculate it for me. pid<- function (tau1,tau2,sigma=10,n=100,x_bar=20) { library(akima)

[R] derivatives in R

2008-03-24 Thread Lavan
Hi, I posted this message earlier in "Rmetrics" and I don't know whether I posted in the wrong place, so I'm posting it again in Rhelp. I have a function in x and y and let's call it f(x,y). I need to get the Hessian matrix. i.e I need (d^2f/dx^2), (d^2f/dxdy), (d^2f/dydx), (d^2f/dy^2).I can get