Re: [R] Speed up studentized confidence intervals ?

2021-12-29 Thread Fox, John
Dear varin sacha, You didn't correctly adapt the code to the median. The outer call to mean() in the last line shouldn't be replaced with median() -- it computes the proportion of intervals that include the population median. As well, you can't rely on the asymptotics of the bootstrap for a non

Re: [R] Speed up studentized confidence intervals ?

2021-12-29 Thread David Winsemius
On 12/29/21 11:08 AM, varin sacha via R-help wrote: Dear David, Dear Rui, Many thanks for your response. It perfectly works for the mean. Now I have a problem with my R code for the median. Because I always get 1 (100%) coverage probability that is more than very strange. Indeed, considering

Re: [R] Mapping of groups of countries

2021-12-29 Thread Jim Lemon
Hi George, This example is obviously a mess, but it shows the basic elements. The labels may be placed manually using something like boxed.labels (plotrix) with lines connecting the labels to the smaller countries. If you want the labels within the countries you will have to use a big graphics devi

[R] Mapping of groups of countries

2021-12-29 Thread george brida
Dear R users, I would like to map with R the following countries (with their names on the map) as follows: the first group in red composed by China, Bangladesh, Eypt, Indonesia, South Korea, Nigeria. The second group in blue composed by Brazil, Pakistan, Philippines, Vietnam. The third group in g

Re: [R] Speed up studentized confidence intervals ?

2021-12-29 Thread varin sacha via R-help
Dear David, Dear Rui, Many thanks for your response. It perfectly works for the mean. Now I have a problem with my R code for the median. Because I always get 1 (100%) coverage probability that is more than very strange. Indeed, considering that an interval whose lower limit is the smallest val

Re: [R] mixture univariate distributions fit

2021-12-29 Thread Bert Gunter
No. However, if the object returned is the "Value" structure of whatever density function you use, it probably contains the original data. You need to check the docs to see. But this does not appear to be your situation. Bert Gunter "The trouble with having an open mind is that people keep comin

Re: [R] How to modify object's code living in some environment?

2021-12-29 Thread Duncan Murdoch
On 29/12/2021 9:29 a.m., Grzegorz Smoliński wrote: Thank you. I posted this question on SO in the meantime as well, but there is no answer for my question, so I pasted your answer (https://stackoverflow.com/questions/70517625/how-to-use-trace-for-function-in-parent-or-child-environment). Hope it

Re: [R] How to modify object's code living in some environment?

2021-12-29 Thread Grzegorz Smoliński
Thank you. I posted this question on SO in the meantime as well, but there is no answer for my question, so I pasted your answer (https://stackoverflow.com/questions/70517625/how-to-use-trace-for-function-in-parent-or-child-environment). Hope it is fine for you. śr., 29 gru 2021 o 11:24 Duncan Mur

[R] mixture univariate distributions fit

2021-12-29 Thread PIKAL Petr
Dear all I have data which are either density distribution estimate or cummulative density distribution estimate (temp1, temp2 below). I would like to get values (mu, sd) for underlaying original data but they are not available. I found mixtools package which calculate what I need but it requires

Re: [R] How to modify object's code living in some environment?

2021-12-29 Thread Duncan Murdoch
On 28/12/2021 4:21 p.m., Grzegorz Smoliński wrote: Thank you for all the comments. If this is not a problem, I would like to continue this thread as for me a lot of questions are still open. But if I should post other questions in different messages / topics, please let me know. I didn’t answer