Displaying 20 results from an estimated 1000 matches similar to: "fast optimization routines in R"
2010 Oct 01
1
Place constrictions on parameters when using Optim and MaxLik
Hi R users,
I am trying to restrct the range of two of the parameters in a maximization
problem. Both parameters should be between -1 and 1. As far as I know, if
I choose the estimation method ="L-BFGS-B" under Optim, I can restrict the
parameter space. However, the "L-BFGS-B" always require finite values of
the loglik function and cannot get around of the problem if an
2010 Aug 28
1
maxNR in maxLik package never stops
Greetings,
I use maxNR function under maxLik package to find the REML estimates of the parameters of variance components in heteroskedastic linear regression models. I assume that in the model there is additive/multiplicative/mixed heteroskedasticity and I need estimate the respective parameters of additive/multiplicative/mixed variance components.
For my research purposes I make a
2010 May 10
2
Robust SE & Heteroskedasticity-consistent estimation
Hi,
I'm using maxlik with functions specified (L, his gradient & hessian).
Now I would like determine some robust standard errors of my estimators.
So I 'm try to use vcovHC, or hccm or robcov for example
but in use one of them with my result of maxlik, I've a the following
error message :
Erreur dans terms.default(object) : no terms component
Is there some attributes
2009 May 16
1
maxLik pakage
Hi all;
I recently have been used 'maxLik' function for maximizing G2StNV178 function with gradient function gradlik; for receiving this goal, I write the following program; but I have been seen an error in calling gradient function;
The maxLik function can't enter gradlik function (definition of gradient function); I guess my mistake is in line ******** ,that the vector ‘h’ is
2020 Oct 08
0
[External] Re: unable to access index for repository...
Oh Hi Arne,
You may recall we visited with this before. I do not believe the problem is algorithm specific. The algorithms I use the most often are BFGS and BHHH (or maxBFGS and maxBHHH). For simple econometric models such as probit, Tobit, and evening sample selection models, old and new versions of R work equally well (I write my own programs and do not use ones from AER or sampleSekection).
2011 May 03
3
help with the maxBHHH routine
Hello R community,
I have been using R's inbuilt maximum likelihood functions, for the
different methods (NR, BFGS, etc).
I have figured out how to use all of them except the maxBHHH function. This
one is different from the others as it requires an observation level
gradient.
I am using the following syntax:
maxBHHH(logLik,grad=nuGradient,finalHessian="BHHH",start=prm,iterlim=2)
2020 Oct 08
2
[External] Re: unable to access index for repository...
Hi Steven
Which optimisation algorithms in maxLik work better under R-3.0.3 than
under the current version of R?
/Arne
On Thu, 8 Oct 2020 at 21:05, Steven Yen <styen at ntu.edu.tw> wrote:
>
> Hmm. You raised an interesting point. Actually I am not having problems with aod per se?-it is just a supporting package I need while using old R. The essential package I need, maxLik, simply
2010 Sep 14
2
Can I monitor the iterative/convergence process while using Optim or MaxLik?
Hi R-helpers,
Is it possible that I have the estimates from each step/iteration shown on
the computer screen in order to monitor the process while I am using Optim
or MaxLik?
Thanks for your help.
Maomao
[[alternative HTML version deleted]]
2020 Oct 08
0
[External] Re: unable to access index for repository...
Hmm. You raised an interesting point. Actually I am not having problems with aod per se?-it is just a supporting package I need while using old R. The essential package I need, maxLik, simply works better under R-3.0.3, for reason I do not understand?specifically the numerical gradients of the likelihood function are not evaluated as accurately in newer versions of R in my experience, which is why
2012 Dec 20
1
Problem with simulation
Dear:
I am having problem with simulation. Sometimes for 100 iteration, my
program works but sometimes give error message regarding some "built-in
function" which I never used
in my code. I have no idea about the problem. Any suggestion, comments or
idea regarding this would be highly appreciable. Thanks.
I have used ---- "maxLik()" and "BBsolve()" in my code. Error
2013 Jul 16
1
[LLVMdev] Instantiating Target-Specifc ASM Parser
Hello,
I am working on backend development and would like to utilize my target's MCAsmParser inside of an MCInst-level class implementation. I noticed that the AsmParser is registered with the target registry however I am having no luck grepping for a "template" of how to instantiate it and have yet to find specific documentation on how it is done. Any ideas or help is greatly
2020 Oct 09
1
[External] Re: unable to access index for repository...
>>>>> Steven Yen
>>>>> on Fri, 9 Oct 2020 05:39:48 +0800 writes:
> Oh Hi Arne, You may recall we visited with this before. I
> do not believe the problem is algorithm specific. The
> algorithms I use the most often are BFGS and BHHH (or
> maxBFGS and maxBHHH). For simple econometric models such
> as probit, Tobit, and evening
2009 May 11
1
maxLik package
Hi all.
Recently i have been used maxlik package for optimizing a function with 5 parameters but i couldn't define gradient argument in function maxLik;
How i can define a command to receive my goal? Whether I can change the core of this package?
Thanks for your attention and reply
A. kheradmandi
[[alternative HTML version deleted]]
2012 Sep 26
2
non-differentiable evaluation points in nlminb(), follow-up of PR#15052
This is a follow-up question for PR#15052
<http://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15052>
There is another thing I would like to discuss wrt how nlminb() should
proceed with NAs. The question is: What would be a successful way to
deal with an evaluation point of the objective function where the
gradient and the hessian are not well defined?
If the gradient and the hessian both
2009 Mar 02
1
initial gradient and vmmin not finite
Dear Rhelpers
I have the problem with initial values, could you please tell me how to solve it?
Thank you
June
> p = summary(maxLik(fr,start=c(0,0,0,1,0,-25,-0.2)))
Error in maxRoutine(fn = logLik, grad = grad, hess = hess, start = start, :
NA in the initial gradient
> p = summary(maxLik(fr,start=c(0,0,0,1,0,-25,-0.2),method="BFGS"))
Error in optim(start, func, gr =
2008 Jul 25
3
Maximization under constraits
I''m looking for a R function which can maximise this logliklihood function,
under the constraits a>0 e b>0
f<-function(param){
a<-param[1]
b <-param[2]
log(prod)-(a*s2)-(b*s)-n*log(1-((0.5*b/sqrt(a))*(exp((b^2)/(4*a)))*((sqrt(pi
))*(1-pnorm(-b/(2*sqrt(a)), mean=0, sd=1)))))}
I''ve tried maxlik constrOptim e donlp2 but without success.
Thanks so
2011 Apr 08
1
Estimates at each iteration
Dear Sir\ Madam
I am trying to maximise a complicated loglikelihood function via EM algorithm
which consists of two step "E-step and M-step"and in this case I need to
maximize the expected of like lihood function " which I get from E- step" and
take those estimates of parameter to update the E-step and repate these till
convargence has been met. So I need to know if I
2009 Apr 03
2
Geometric Brownian Motion Process with Jumps
Hi,
I have been using maxLik to do some MLE of Geometric Brownian Motion Process and everything has been going fine, but know I have tried to do it with jumps. I have create a vector of jumps and then added this into my log-likelihood equation, know I am getting a message:
NA in the initial gradient
My codes is hear
#
n<-length(combinedlr)
j<-c(1,2,3,4,5,6,7,8,9,10)
2010 Mar 12
2
Question regarding to maxNR
Hi R-users,
Recently, I use maxNR function to find maximizer. I have error appears as follows
Error in maxNRCompute(fn = fn, grad = grad, hess = hess, start = start, :
NA in the initial gradient
My code is
mu=2
s=1
n=300
library(maxLik)
set.seed(1004)
x<-rcauchy(n,mu,s)
loglik<-function(mu)
{
log(prod(dcauchy(x,mu,s)))
}
maxNR(loglik,start=median(x))$estimate
Does anyone know how
2009 May 21
2
good numerical optimization to use in R?
Hi all,
Could anybody point me to a good/robust numerical optimization program
to use in R?
I am doing some MLE fitting. Thanks!