search for: optimr

Displaying 13 results from an estimated 13 matches for "optimr".

Did you mean: optim
2006 Mar 16
1
lme4/Matrix: Call to .Call("mer_update_y"...) and LMEoptimize gives unexpected side effect...
...2, PACKAGE = "Matrix")))) .Call("mer_coefGets", x, pars, 2, PACKAGE = "Matrix") .Call("mer_gradient", x, 2, PACKAGE = "Matrix") } else NULL optimRes <- nlminb(.Call("mer_coef", x, 2, PACKAGE = "Matrix"), fn, gr, lower = ifelse(constr, 5e-10, -Inf), control = list(iter.max = value$msMaxIter,...
2017 Dec 31
1
Order of methods for optimx
Dear R-er, For a non-linear optimisation, I used optim() with BFGS method but it stopped regularly before to reach a true mimimum. It was not a problem with limit of iterations, just a local minimum. I was able sometimes to reach better minimum using several rounds of optim(). Then I moved to optimx() to do the different optim rounds automatically using "Nelder-Mead" and
2017 Aug 26
1
Fwd: Find maxima of a function
...), Norm(819.2011, 57.06655), mixCoeff=mc0/sum(mc0)) plot(rv, to.draw.arg="d") I am getting 731.1345 from the code you have provide It is part of a code, so it was difficult to write a reproducible code I have tried to use optimr but it gives me the local maxima, now I am struck with the problem of how to get the global maxima On Sat, Aug 26, 2017 at 3:12 PM, Ismail SEZEN [via R] < ml+s789695n4744993h60 at n4.nabble.com> wrote: > > > On 26 Aug 2017, at 14:18, Ulrik Stervbo <[hidden email] > <http:...
2016 Oct 09
1
optim(?, method=?L-BFGS-B?) stops with an error
...are "hard", in part because getting them implemented and linked to an interfacing approach like R is very tedious and prone to omissions and errors. The good news: I've been working on a revision to optimx, having noted the implementation issues just mentioned. There is now a package optimr on CRAN, but that's just to reserve the name. The real package is optimrx on R-forge (dependencies can fail, then the poor maintainer gets "your package doesn't work", with no hope of fixing it). Moreover, Harry Joe recently pointed out to me a bug and in the last few weeks I thin...
2017 Aug 27
2
Fwd: Find maxima of a function
...ure I will get is not fixed, It can be 3 or 4or5 or 10. It will all depend on the user. Then on the result of kmeans, I wanted to find the maxima so that I can use Normalized probability formula further for my logic and in order to do that I used Newton's method and that was implemented in the optimr package. I was getting the wrong result so I used distr package in order to check the problem and I figured out I was getting the wrong maxima. So I can to the conclusion which I have posted as my query. PS: I am able to use distr package without any problem. And I want to use dnorm because I ha...
2017 Aug 26
0
Find maxima of a function
...> > mixCoeff=mc0/sum(mc0)) > > plot(rv, to.draw.arg="d") > > > I am getting 731.1345 from the code you have provide > > > It is part of a code, so it was difficult to write a reproducible code > > I have tried to use optimr but it gives me the local maxima, now I am > struck with the problem of how to get the global maxima > This is basically an optimization problem so it?s nothing to do with distr package and UnivarMixingDistribution function. Also I?m not able to install distr package because of an error. Ca...
2017 Jun 27
2
Finding optim.R function
Hello, could anybody direct me where to find code for optim.R? I was able to find the C code at http://docs.rexamine.com/R-devel/optim_8c.html, but the R version would be easier for me to work with and modify. Thank you! [[alternative HTML version deleted]]
2017 Aug 27
0
Fwd: Find maxima of a function
...; fixed, It can be 3 or 4or5 or 10. It will all depend on the user. > > Then on the result of kmeans, I wanted to find the maxima so that I can use > Normalized probability formula further for my logic and in order to do that > I used Newton's method and that was implemented in the optimr package. > > I was getting the wrong result so I used distr package in order to check > the problem and I figured out I was getting the wrong maxima. So I can to > the conclusion which I have posted as my query. > > PS: I am able to use distr package without any problem. > &...
2017 Feb 09
0
What would make R easier to use for you (and sos version 1.4-1 and useR!2017)
...e invited to offer their thoughts in at least three areas: * A common interface for similar functions. For example, John C. Nash and others have taken the lead in developing packages to provide one standard call that will work for different algorithms for numerical optimization (optimr) and nonlinear regression. Something similar could be done for the at least 25 different functions for singular value decomposition and principal components. * Improving Task Views. Julia Silge will lead a discussion at useR! 2017 on what might be done to make it easier for the...
2017 Aug 27
1
Fwd: Find maxima of a function
...or 4or5 or 10. It will all depend on the user. > > > > Then on the result of kmeans, I wanted to find the maxima so that I can use > > Normalized probability formula further for my logic and in order to do that > > I used Newton's method and that was implemented in the optimr package. > > > > I was getting the wrong result so I used distr package in order to check > > the problem and I figured out I was getting the wrong maxima. So I can to > > the conclusion which I have posted as my query. > > > > PS: I am able to use distr packag...
2020 Oct 28
2
R optim() function
Hi R-Help, I am using R to do functional outlier detection (using PCA to reduce to 2 dimensions - the functional boxplot methodology used in the Rainbow package), and using Hscv.diag function to calculate the bandwidth matrix where this line of code is run: result <- optim(diag(Hstart), scv.mat.temp, method = "Nelder-Mead", control = list(trace = as.numeric(verbose))) Within the
2007 Jan 26
0
R crash with modified lmer code
...= fl)], function(k) 1:((k * (k + 1))/2) <= k))) devLaplace <- function(pars) .Call(glmer_devLaplace, pars, GSpt) rel.tol <- abs(0.01/devLaplace(PQLpars)) if (cv$msVerbose) cat(paste("relative tolerance set to", rel.tol, "\n")) optimRes <- nlminb(PQLpars, devLaplace, lower = ifelse(const, 5e-10, -Inf), control = list(trace = cv$msVerbose, iter.max = cv$msMaxIter, rel.tol = rel.tol)) .Call(glmer_finalize, GSpt) new("glmer", new("lmer", mer, frame = if (model) mf else d...
2019 Jan 31
1
nlminb with constraints failing on some platforms
Prof Nash, Prof Galanos Is it possible to use a generic code stub in front of packages that use optimx to improve optimx use or curtail it according to the requirements? Best Regards Amit +91 7899381263 ________________________________________________________________________ Please request Skype as available 5th Year FPM (Ph.D.) in Finance and Accounting Area Indian Institute