Displaying 14 results from an estimated 14 matches similar to: "donlp2"
2009 Jul 03
1
Error
Dear Sir,
I installed successfully using the install.packages("Rdonlp2", repos="
http://R-Forge.R-project.org"). I tried on the example which is defined on
the Rdonlp help file ,p <- c(-10,10)par.l <- c(0,0); par.u <-
c(100,100)lin.u <- 1; lin.l <- 1A <- t(c(1,1))fn <- function(x){
x[1]^2+x[2]^2}ret <- donlp2(p, fn, par.lower=par.l, par.upper=par.u, A=A,
2011 Feb 15
0
Delta method using numerical derivatives
Dear all,
Is there a fairly general R implementation of the delta method that uses
numerical derivatives?
I realise that the delta method has been implemented using symbolic
derivatives (e.g. alr3::delta.method, emdbook::deltamethod,
msm::deltamethod and survey:::nlcon), however possibly non-linear
estimators using the delta method with numerical derivatives can be
quite useful (e.g. predictnl
2008 Aug 19
1
nonlinear constrained optimization
Hi. I need some advises on how to use R to find pi (i is the index) with
the following objective function and constraint:
max (sum i)[ f(ai, bi, pi) * g(ci, di, pi) * Di ]
s.t. (sum i)[ f(ai, bi, pi) * Di * pi] / (sum i)[ f(ai, bi, pi) * Di ] <=
constant
f and g are diffentiable.
So, I am thinking of optim with method = "BFGS"? But wonder how to include
the
2012 Jul 18
4
The best solver for non-smooth functions?
# Hi all,
# consider the following code (please, run it:
# it's fully working and requires just few minutes
# to finish):
require(CreditMetrics)
require(clusterGeneration)
install.packages("Rdonlp2", repos= c("http://R-Forge.R-project.org",
getOption("repos")))
install.packages("Rsolnp2", repos= c("http://R-Forge.R-project.org",
2012 Oct 09
2
Error in matrix (unlist(value, recursive = FALSE, use.names = FALSE), nrow = nr, : attempt to set an attribute on NULL
I am using Donlp2 package to solve a non-linear problem, but there's an error
I always meet:
Error in matrix(unlist(value, recursive = FALSE, use.names = FALSE), nrow =
nr, :
attempt to set an attribute on NULL
I have been suffering from this bug for a long time. I'll be very grateful
if somebody could help me -_-
--
View this message in context:
2007 Jun 10
0
Rdonlp2 - an extension library for constrained optimization
Ryuichi Tamura wrote:
Please can you put your package on the CRAN server ?
Many thanks
Diethelm Wuertz
> Hello R-list,
>
> I have released an update version (0.3-1) of Rdonlp2.
> Some (fatal) bugs which may kill interpreter should be fixed.
>
> In addition, user-visible changes are:
> * *.mes, *.pro files are not created if name=NULL(this is default) in donlp2().
> * use
2010 Jul 26
1
Optimization problem with nonlinear constraint
Dear all,
I'm looking for a way to solve a simple optimization problem with a
nonlinear constraint. An example would be
max x s.t. y = x * T ^(x-1)
where y and T are known values.
optim() and constrOptim() do only allow for box or linear constraints,
so I did not succedd here. I also found hints to donlp2 but this does
not seem to be available anymore.
Any hints are welcome,
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 Aug 18
1
Comparison of means in survey package
Dear list colleagues,
I'm trying to come up with a test question for undergraduates to illustrate comparison of means from a complex survey design. The data for the example looks roughly like this:
mytest<-data.frame(harper=rnorm(500, mean=60, sd=1), party=sample(c("BQ", "NDP", "Conservative", "Liberal", "None", NA), size=500,
2009 Jul 03
2
Error using the Rdonlp2 Package
Dear experts,
I'm attempting to solve a constrained optimization problem using the Rdonlp2
package.
I created a Lagrange function (L=f(x)-lambda(g(x)-c)), where x is a vector
of 16 parameters. This is what I'm using as objective function in the code
below. In addition, I set bounds on these parameters (par.u and par.l). When
I run the code, I get the error message shown below. Any idea
2009 Sep 03
3
Rdonlp2 package question
Previous versions have this question have partially bounced.
I apologize if parts of this are showing up multiple times on the
list.
Another try ...
There was at one time an R package called Rdonlp2 for solving
constrained nonlinear programming problems. Both the objective
function
and the constraints could be nonlinear in the decision variables.
The package is no longer in the CRAN list.
2009 Mar 24
3
confidence interval or error of x intercept of a linear regression
Hello all,
This is something that I am sure has a really suave solution in R, but I can't quite figure out the best (or even a basic) way to do it.
I have a simple linear regression that is fit with lm for which I would like to estimate the x intercept with some measure of error around it (confidence interval). In biology, there is the concept of a developmental zero - a temperature under
2011 Mar 07
1
Risk differences with survey package
I'm trying to use the survey package to calculate a risk difference with
confidence interval for binge drinking between sexes. Variables are
X_RFBING2 (Yes, No) and SEX. Both are factors. I can get the group
prevalences easily enough with
result <- svyby(~X_RFBING2, ~SEX, la04.svy, svymean, na.rm = TRUE)
and then extract components from the svyby object with SE() and coef() to
do the
2006 Apr 05
1
Info required
Hi Samba Team,
We are currently running on Samba 2.2.3a version. As part of the technology
upgrade, management is willing to upgrade the current samba versions of in
production machines. Can you please tell me how long I can use the 2.2.3a
version? And if you suggest me to upgrade to a higher version, which
version will best suite for us ?.
Thanks in Advance.....Hisham
Unless expressly stated