Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-28 Thread Bernard Comcast
I will take a look but the hdrcde package appears to give me the plots I was looking for. Thanks Bernard Sent from my iPhone so please excuse the spelling!" > On Mar 28, 2019, at 10:16 PM, Jeff Newmiller wrote: > > I just found the "ks" package which looks promising... [1] > > https://cran.r

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-28 Thread Jeff Newmiller
I just found the "ks" package which looks promising... [1] https://cran.r-project.org/web/packages/ks/vignettes/kde.pdf On March 28, 2019 12:16:12 PM PDT, David Winsemius wrote: > >On 3/28/19 11:33 AM, Bernard McGarvey wrote: >> pracma meets my needs - thanks - this is an amazing package with l

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-28 Thread David Winsemius
On 3/28/19 11:33 AM, Bernard McGarvey wrote: pracma meets my needs - thanks - this is an amazing package with lots of very very useful functions. Thanks for bringing it to my attention. Excellent. I'll mention also the hdrcde package which addresses some of your questions as well. It also

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-28 Thread Bernard McGarvey
pracma meets my needs - thanks - this is an amazing package with lots of very very useful functions. Thanks for bringing it to my attention. Bernard McGarvey Director, Fort Myers Beach Lions Foundation, Inc. Retired (Lilly Engineering Fellow). > On March 28, 2019 at 1:40 PM David Winsemius

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-28 Thread David Winsemius
On 3/27/19 3:43 PM, Bernard Comcast wrote: To follow on Jeff, is there a function to do 2-D (double) numerical integration in R? Packages pracma and cubature offer a variety of solutions to that task. -- David. Bernard Sent from my iPhone so please excuse the spelling!" On Mar 27, 2

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-28 Thread Bernard Comcast
rell ; John Kane >> >> Cc: R. Help Mailing List >> Subject: Re: [R] [FORGED] Re: Quantile Density Contours >> >> If I understand correctly the ContourLines function gives you the contour >> lines >> when you put in the data. But before this I need to

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread PIKAL Petr
lp On Behalf Of Bernard McGarvey > Sent: Wednesday, March 27, 2019 9:55 PM > To: Paul Murrell ; John Kane > > Cc: R. Help Mailing List > Subject: Re: [R] [FORGED] Re: Quantile Density Contours > > If I understand correctly the ContourLines function gives you the contour > li

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread Jeff Newmiller
https://cran.r-project.org/web/views/Multivariate.html https://cran.r-project.org/web/views/ On March 27, 2019 4:05:31 PM PDT, Bernard Comcast wrote: >No - how do I access that? > >Bernard >Sent from my iPhone so please excuse the spelling!" > >> On Mar 27, 2019, at 6:57 PM, Jeff Newmiller > wr

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread peter dalgaard
You might be wishing for a contour plot of the density, labeled by the probability mass outside of each contour, but there is no general simple connection between density contours and the mass inside of them. You can work it out (I think) for elliptically contoured distributions, but I suspect t

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread Bernard Comcast
No - how do I access that? Bernard Sent from my iPhone so please excuse the spelling!" > On Mar 27, 2019, at 6:57 PM, Jeff Newmiller wrote: > > I don't know. Have you looked at the Multivariate Task View? > >> On March 27, 2019 3:43:52 PM PDT, Bernard Comcast >> wrote: >> To follow on Jeff,

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread Jeff Newmiller
I don't know. Have you looked at the Multivariate Task View? On March 27, 2019 3:43:52 PM PDT, Bernard Comcast wrote: >To follow on Jeff, is there a function to do 2-D (double) numerical >integration in R? > >Bernard >Sent from my iPhone so please excuse the spelling!" > >> On Mar 27, 2019, at 6

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread Bernard Comcast
To follow on Jeff, is there a function to do 2-D (double) numerical integration in R? Bernard Sent from my iPhone so please excuse the spelling!" > On Mar 27, 2019, at 6:38 PM, Jeff Newmiller wrote: > > Regardless of how many dimensions you have for independent variables, the > density is one

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread Jeff Newmiller
Regardless of how many dimensions you have for independent variables, the density is one-dimensional, and if you assume the density function has been determined (e.g. by kernel estimation or by a Gaussian copula) then if you integrate the density function along that dimension there will be uniqu

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread Bernard Comcast
That thought had crossed my mind so thanks for that clarification Bert. i think you are correct and so the plot I am looking at must be doing something different than I was thinking. Thanks Bernard Sent from my iPhone so please excuse the spelling!" > On Mar 27, 2019, at 5:18 PM, Bert Gunter

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread Bert Gunter
You are missing a crucial point. The reals are well ordered; higher dimensions are not. Therefore 2d quantile contours are not unique. Of course assuming I understand your query correctly. Bert On Wed, Mar 27, 2019, 13:55 Bernard McGarvey wrote: > If I understand correctly the ContourLines fu

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread Bernard McGarvey
If I understand correctly the ContourLines function gives you the contour lines when you put in the data. But before this I need to data to put into that function. I think this is something like a 2D CDF of the data that then leads to the 2D quantiles but I am not 100% sure. What I am basically

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread Paul Murrell
Are you looking for the contourLines() function ? Paul On 28/03/19 8:37 AM, Bernard McGarvey wrote: John, I have attached a pdf of the plot. Hopefully you can read this. If I understand correctly, this plot is basically the 2-D version of the 1-D quantile plot. Thanks Bernard McGarvey D