Re: [R] Very slow optim()

2021-03-12 Thread Deepayan Sarkar
On Sat, Mar 13, 2021 at 10:08 AM Spencer Graves wrote: > > TWO COMMENTS: > > > 1. DID YOU ASSIGN THE OUTPUT OF "optim" to an object, like "est <- > optim(...)"? If yes and if "optim" terminated normally, the 60,000+ > paramters should be there as est$par. See the documentation on "optim". > > >

Re: [R] Very slow optim()

2021-03-12 Thread Spencer Graves
TWO COMMENTS: 1. DID YOU ASSIGN THE OUTPUT OF "optim" to an object, like "est <- optim(...)"? If yes and if "optim" terminated normally, the 60,000+ paramters should be there as est$par. See the documentation on "optim". 2. WHAT PROBLEM ARE YOU TRYING TO SOLVE? I hope you will forg

Re: [R] Very slow optim()

2021-03-12 Thread J C Nash
optim() has no method really suitable for very large numbers of parameters. - CG as set up has never worked very well in any of its implementations (I wrote it, so am allowed to say so!). Rcgmin in optimx package works better, as does Rtnmin. Neither are really intended for 60K parameters ho

Re: [R] Very slow optim(): solved

2021-03-12 Thread Jeff Newmiller
Calculate fewer of them? If you don't setup your code to save intermediate results, then you cannot see intermediate results. On March 11, 2021 8:32:17 PM PST, "毕芳妮 via R-help" wrote: >Dear list, >I am using optim() to estimate over 60 thousans of parameters, and use >the server to run the pro

Re: [R] Very slow optim(): solved

2021-03-12 Thread 毕芳妮 via R-help
Dear list, I am using optim() to estimate over 60 thousans of parameters, and use the server to run the program.But it took me 5 hours and there was just no result coming out.How could I do to show some results that have been calculated by optim()? _

Re: [R] R extension memory leak detection question

2021-03-12 Thread Duncan Murdoch
On 12/03/2021 12:37 p.m., Duncan Murdoch wrote: On 12/03/2021 12:13 p.m., xiaoyan yu wrote: I am writing C++ program based on R extensions and also try to test the program with google address sanitizer. I thought if we don't protect the variable from the allocation API such as Rf_allocVector, t

Re: [R] R extension memory leak detection question

2021-03-12 Thread Duncan Murdoch
On 12/03/2021 12:13 p.m., xiaoyan yu wrote: I am writing C++ program based on R extensions and also try to test the program with google address sanitizer. I thought if we don't protect the variable from the allocation API such as Rf_allocVector, there will be a memory leak. However, the address

Re: [R] R extension memory leak detection question

2021-03-12 Thread Bert Gunter
This is the wrong list for such questions. Post to r-devel instead. Cheers, Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Fri, Mar 12, 2021 at 9:13 AM xiaoya

[R] R extension memory leak detection question

2021-03-12 Thread xiaoyan yu
I am writing C++ program based on R extensions and also try to test the program with google address sanitizer. I thought if we don't protect the variable from the allocation API such as Rf_allocVector, there will be a memory leak. However, the address sanitizer didn't report it. Is my understandin

Re: [R] [External] Re: [External] Re: Help please

2021-03-12 Thread Areti Panopoulou
Thank you so much everyone for your time and help! I really appreciate it. Kind Regards, Areti On Thu, Mar 11, 2021 at 10:34 PM Rasmus Liland wrote: > That is such a nice email crammed with > useful info I'm sure Areti Panopoulou > appreciates. JR > [[alternative HTML version deleted]

Re: [R] quantile from quantile table calculation without original data

2021-03-12 Thread Abby Spurdle
Hi Petr, In principle, I like David's approach the best. However, I note that there's a bug in the squared step. Furthemore, the variance of the sample quantiles should increase as they move away from the modal region. I've built on David's approach, but changed it to a two stage optimization alg