Displaying 20 results from an estimated 6000 matches similar to: "Need some advice on optimization"
2008 Dec 30
1
issue with encoding in R-2.8.1 invalid multibyte character
Hi,
We recently switched from R2.7.0 to R2.8.1 but having problems tracking down this 'invalid multibyte character' encoding issue. Can someone point us how to solve this?
> sessionInfo()
R version 2.8.1 (2008-12-22)
x86_64-unknown-linux-gnu
locale:
2006 Nov 24
4
Nonlinear statistical modeling -- a comparison of R and AD Model Builder
There has recently been some discussion on the list about
AD Model builder and the suitability of R for constructing the
types of models used in fisheries management.
https://stat.ethz.ch/pipermail/r-help/2006-January/086841.html
https://stat.ethz.ch/pipermail/r-help/2006-January/086858.html
I think that many R users understimate the numerical challenges
that some of the typical
2007 Mar 23
4
Effect display of proportional odds model
Dear useRs,
I very much like the effect display of the proportional odds model on
page 29 (Figure 8) of the following paper by John Fox:
http://socserv.mcmaster.ca/jfox/Papers/logit-effect-displays.pdf
It really gives a very concise overview of the model. I would like to
use it to illustrate the proportional odds mixed models we fit here for
a project on Diabetes but I can't seem to reproduce
2005 Sep 12
1
poisson mean hypothesis
Dear R-users,
Is there a way to get p-values for a one-sided hypothesis test about a
poisson mean?
Thanks,
Jan Wijffels
University Center for Statistics
W. de Croylaan 54
3001 Heverlee
Belgium
tel: +32 (0)16 322784
fax: +32 (0)16 322831
<http://www.kuleuven.be/ucs> http://www.kuleuven.be/ucs
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
[[alternative HTML version
2010 Nov 22
3
Fast Two-Dimensional Optimization
Dear R Helpers,
I have attempted "optim" function to solve a two-dimensional optimization
problem. It took around 25 second to complete the procedure.
However, I want to reduce the computation time: less than 7 second. Is there
any optimization function in R which is very rapid?
Best Regards,
Wonsang
-----
Wonsang You
Leibniz Institute for Neurobiology
--
View this message in
2005 Jul 27
1
rpart.permutation, snow, rsprng binary files
Dear R-users,
Does anyone of you have binary files for the packages rpart.permutation,
snow and rsprng. I would like to use them in my classification tree. I
know they are still at the 0.x development stage, though.
Where can I get information on how to compile tar.gz files? I'm using
windows XP with R 2.1.0.
Thanks,
Jan
--------------------------------------------------------------------
2011 Sep 30
1
last observation carried forward +1
Hi R-helpers
I'm looking for a vectorised function which does missing value replacement
as in last observation carried forward in the zoo package but instead of a
locf, I would like the locf function to add +1 to each time a missing value
occurred. See below for an example.
> require(zoo)
> x <- 5:15
> x[4:7] <- NA
> coredata(na.locf(zoo(x)))
[1] 5 6 7 7 7 7 7 12 13
2006 Feb 28
3
any more direct-search optimization method in R
Hello list,
I am dealing with a noisy function (gradient,hessian not available) with
simple boundary constraints (x_i>0). I've tried constrOptim() using nelder
mead to minimize it but it is way too slow and the returned results are not
satisfying. simulated annealing is so hard to tune and it always crashes R
program in my case. I wonder if there are any packages or functions can do
2011 Sep 02
5
Hessian Matrix Issue
Dear All,
I am running a simulation to obtain coverage probability of Wald type
confidence intervals for my parameter d in a function of two parameters
(mu,d).
I am optimizing it using "optim" method "L-BFGS-B" to obtain MLE. As, I
want to invert the Hessian matrix to get Standard errors of the two
parameter estimates. However, my Hessian matrix at times becomes
2004 Jan 05
3
optim function : "BFGS" vs "L-BFGS-B"
Dear kind R-experts.
Does anybody have an experience to use optim function?
If yes, what is the main difference between two method "BFGS" vs
"L-BFGS-B"?
I used "BFGS" method and got what I wanted. But when I used "L-BFGS-B"
the error message said that "L-BFGS-B needs finite values of fn". So
that means
"BFGS" method can handle even if fn
2011 Jul 29
3
help with plot.rpart
? data=read.table("http://statcourse.com/research/boston.csv", , sep=",",
header = TRUE)
? library(rpart)
? fit=rpart (MV~ CRIM+ZN+INDUS+CHAS+NOX+RM+AGE+DIS+RAD+TAX+ PT+B+LSTAT)
Please: Show me the tree.
Mark
-------- Original Message --------
Subject: Re: [R] help with rpart
From: "Stephen Milborrow" <[1]milbo at sonic.net>
2010 Dec 13
2
Complicated nls formula giving singular gradient message
I'm attempting to calculate a regression in R that I normally use Prism for,
because the formula isn't pretty by any means.
Prism presents the formula (which is in the Prism equation library as
Heterologous competition with depletion, if anyone is curious) in these
segments:
KdCPM = KdnM*SpAct*Vol*1000
R=NS+1
S=(1+10^(X-LogKi))*KdCPM+Hot
a=-1*R
b=R*S+NS*Hot+BMax
c = -1*Hot*(S*MS+BMax)
Y
2012 Sep 20
1
optim and "the function should not" advice
Dear R users,
I'm using optim to optimize a pretty complicated function. This function takes the parameter vector "theta" and within its body I use instructions like
sigma<-theta[a:b]; computations with sigma...
out<-c()
for (i in 1:d){
a<-theta[(3*d+i):c]
out[i]<-evaluation of an expression involving 'a' (I use symbolic differentiation)
}
Unfortunately
2007 Aug 29
1
Modifying R_CheckStack for a speed increase
Greetings R developers,
R will run a little faster when executing "pure R" code if the function
R_CheckStack() is modified.
With the modification, the following code for example runs 15% faster
(compared to a virgin R-2.5.1 on my Windows XP machine):
N = 1e7
foo <- function(x)
{
for (i in 1:N)
x <- x + 1
x
}
2001 Aug 13
1
optimization on a circle
Hi all,
after conducting a central composite design, I would like to optimize
the estimated function on a circle (resp. globe) instead of a square
(resp. cube), since the optimum will be reached on the bounds.
Is there a function in R which could be used for this purpose? I'm using
optim() with method = "L-BFGS-B" for the optimization on a square or
cube.
Thanks in advance for
2005 Dec 14
3
glmmADMB: Generalized Linear Mixed Models using AD Model Builder
Dear R-users,
Half a year ago we put out the R package "glmmADMB" for fitting
overdispersed count data.
http://otter-rsch.com/admbre/examples/glmmadmb/glmmADMB.html
Several people who used this package have requested
additional features. We now have a new version ready.
The major new feature is that glmmADMB allows Bernoulli responses
with logistic and probit links. In addition there
2012 Jun 13
1
Tukey Kramer with ANOVA (glm)
Hello,
I am performing a BACI analysis with ANOVA using the following glm:
fit1<-glm(log(Cucs_m+1)~(BA*Otter)+BA+Otter+ID+Primary, data=b1)
The summary(aov(fit1)) shows significance in the interaction; however, now I
would like to determine what combinations of BA and Otter are significantly
different (each factor has two levels). ID and PRIMARY substrates are
categorical and included in
2009 Mar 29
4
Constrined dependent optimization.
I have an optimization question that I was hoping to get some suggestions on how best to go about sovling it. I would think there is probably a package that addresses this problem.
This is an ordering optimzation problem. Best to describe it with a simple example. Say I have 100 "bins" each with a ball in it numbered from 1 to 100. Each bin can only hold one ball. This optimization is
2012 Nov 15
1
hessian fails for box-constrained problems when close to boundary?
Hi
I am trying to recover the hessian of a problem optimised with
box-constraints. The problem is that in some cases, my estimates are very
close to the boundary, which will make optim(..., hessian=TRUE) or
optimHessian() fail, as they do not follow the box-constraints, and hence
estimate the function in the unfeasible parameter space.
As a simple example (my problem is more complex though,
2005 Nov 15
1
An optim() mystery.
I have a Master's student working on a project which involves
estimating parameters of a certain model via maximum likelihood,
with the maximization being done via optim().
A phenomenon has occurred which I am at a loss to explain.
If we use certain pairs of starting values for optim(), it
simply returns those values as the ``optimal'' values, although
they are definitely not