Displaying 20 results from an estimated 2000 matches similar to: "R-help Digest, Vol 112, Issue 25"
2010 Sep 17
0
question on OPTIMX with installing and using
Dear R users
I have tried to install the optimx but met problems.
I have gone to the website you suggested:
https://r-forge.r-project.org/R/?group_id=395
and tried to install it with the following method:
install.packages("optimx", repos="http://R-Forge.R-project.org")
I have received the following information:
package 'numDeriv' successfully unpacked and MD5
2010 Apr 03
0
Restricting optimisation algorithm's parameter space
> I have a problem. I am using the NLME library to fit a non-linear model. There is a linear component to the model that has a couple parameter values that can only be positive (the coefficients are embedded in a sqrt). When I try and fit the model to data the search algorithm tries to see if a negative value for one of these parameter values will produce an optimal fit. When it does so,
2012 Jun 09
0
R-devel Digest, Vol 112, Issue 8
I'll not be able to comment on the use of C like this, but will warn that I wrote the
routines that became Nelder-Mead, CG, and BFGS in optim() in the mid 1970s. CG never did
as well as I would like, but the other two routines turned out pretty well. However, in
nearly 40 years, there are a few improvements, particularly in handling bounds and masks
(fixed parameters). For all-R routines see
2010 Jun 22
1
Subject: Re ZINB by Newton Raphson??
I have not included the previous postings because they came out very strangely on my mail
reader. However, the question concerned the choice of minimizer for the zeroinfl()
function, which apparently allows any of the current 6 methods of optim() for this
purpose. The original poster wanted to use Newton-Raphson.
Newton-Raphson (or just Newton for simplicity) is commonly thought to be the
2007 Apr 05
2
about systemfit
Hello. I am still a newbie in R. Excuse me if I am asking something obvious. My efforts to get an answer through browsing the mailing archives failed. I want to perform an augmented Dickey-Fuller test and to obtain AIC and BIC and to be able to impose some linear restrictions on the ADF regression so as to decide the correct order of autoregression. However I could find no obvious way to impose
2008 Jul 23
3
Constrained coefficients in lm (correction)
Dear list,
In my previous email, the model I'd like to estimate is
rea=a*st+b*mod+error, where a+b=1 and a,b>0. My apologies for the
misunderstanding.
Thanks for all your help,
Jorge
On Wed, Jul 23, 2008 at 3:35 PM, Jorge Ivan Velez <jorgeivanvelez@gmail.com>
wrote:
>
> Dear list,
>
> I have a data set which looks like myDF (see below) and I'd like to
>
2010 Jul 19
1
nls with some coefficients fixed
I'm using nls to fit a variety of different models. Here I use SSgompertz as
an example.
I want the ability to fix one (or more) of the coefficients that would
normally be optimised (e.g. fix b3=0.8).
Examples; based on and using data from example(SSgompertz)
#---------------------
# vanilla call to nls, no coefficients fixed, works fine
nls(density ~ SSgompertz(log(conc), Asym, b2, b3),
2006 Apr 19
1
apply(table) miss factor structure
Hi, all.
I didn't find something similar to this problem in
past list.
I have a data frame (named restr) where some columns
are factors, like you can see:
> table(restr[,"p1"])
0 1 2 3 4 5
0 26 1 0 1 0
> table(restr[,"p2"])
0 1 2 3 4 5 6
0 13 11 1 2 1 0
When I use apply, the factor structure is missed:
>
2008 Sep 11
0
Loop for the convergence of shape parameter
Hello,
The likelihood includes two parameters to be estimated: lambda
(=beta0+beta1*x) and alpha. The algorithm for the estimation is as
following:
1) with alpha=0, estimate lambda (estimate beta0 and beta1 via GLM)
2) with lambda, estimate alpha via ML estimation
3) with updataed alpha, replicate 1) and 2) until alpha is converged to a
value
I coded 1) and 2) (it works), but faced some
2005 Dec 01
2
Minimizing a Function with three Parameters
Hi,
I'm trying to get maximum likelihood estimates of \alpha, \beta_0 and
\beta_1, this can be achieved by solving the following three equations:
n / \alpha + \sum\limits_{i=1}^{n} ln(\psihat(i)) -
\sum\limits_{i=1}^{n} ( ln(x_i + \psihat(i)) ) = 0
\alpha \sum\limits_{i=1}^{n} 1/(psihat(i)) - (\alpha+1)
\sum\limits_{i=1}^{n} ( 1 / (x_i + \psihat(i)) ) = 0
\alpha \sum\limits_{i=1}^{n} (
2010 Mar 25
0
help with breaking loops used to fit covariates in nlme model building procedure
Dear All
I'm attempting to speed up my model building procedure, but need some help with the loops I've created...please bear with me through the explanation!
My basic model call is something like:
m0sulf.nlme<-nlme(conc~beta0*exp(-beta1*day)+beta2*exp(-beta3*day),
data=m0sulf,
fixed=(beta0+beta1+beta2+beta3~1),
2008 Sep 25
0
solving for beta0 in a logsitic regression
Hi all,
I am trying to create simulated data for exploring reclassfication
measures in a logistic setting with two continuous predictors and I
would like to set the average population probability of outcome rather
than the logistic beta0. Is there a way to find a beta0 that will
generate the desired average population probability of outcome given x,y
and their odds ratios?
#Here is an
2008 Sep 12
1
Error in "[<-"(`*tmp*`, i, value = numeric(0)) :
I use "while" loop but it produces an errro. I have no idea about this.
Error in "[<-"(`*tmp*`, i, value = numeric(0)) :
nothing to replace with
The problem description is
The likelihood includes two parameters to be estimated: lambda
(=beta0+beta1*x) and alpha. The algorithm for the estimation is as
following:
1) with alpha=0, estimate lambda (estimate beta0
2011 May 04
1
hurdle, simulated power
Hi all--
We are planning an intervention study for adolescent alcohol use, and I
am planning to use simulations based on a hurdle model (using the
hurdle() function in package pscl) for sample size estimation.
The simulation code and power code are below -- note that at the moment
the "power" code is just returning the coefficients, as something isn't
working quite right.
The
2004 May 24
0
Seasonal ARIMA question - stat package (formerly ts)
To whom it may concern:
I am trying to better understand the functionality of 'R' when making
arima predictions to avoid any "Black Box" disadvantages.
I'm fitting a seasonal arima model using the following command (having
already loaded 'stat' package).
arimaSeason <-
arima(Data,order=c(1,0,1),seasonal=list(order=c(1,0,1),period=12))
I can then generate
2005 May 19
1
R 2.1.0 RH Linux Built from Source Segmentation Fault
Background:
I administer a cluster of RedHat EWS 3U4 Linux workstations at a university.
I built R 2.1.0 from source:
./configure \
--prefix=/sscc/opt/R-2.1.0 \
--with-blas=no \
2>&1 \
| tee NUInstall.configure
R is now configured for i686-pc-linux-gnu
Source directory: .
Installation directory: /sscc/opt/R-2.1.0
C compiler:
2008 Aug 22
2
WinBUGS with R
Dear Users,
I am new to both of things, so do not blame me too much...
I am busy with semiparametric regression and use WinBUGS to sample
posteriors.
The code to call Winbugs is as follows:
data <- list("y","X","n","m") #My variables
inits.beta <- rep(0,K)
inits.beta0 <- 0
inits <-
2016 Oct 08
4
optim(…, method=‘L-BFGS-B’) stops with an error message while violating the lower bound
Hi, Mark et al.:
Thanks, Mark.
Three comments:
1. Rvmmin was one of the methods I tried after Ravi
directed me to optimx. It returned NAs for essentially everything. See
my email of this subject stamped 4:43 PM Central time = 21:43 UTC.
2. It would be interesting to know if the current
algorithm behind optim and optimx with
2016 Oct 08
0
optim(…, method=‘L-BFGS-B’) stops with an error message while violating the lower bound
Hi Spencer: See the link below about L-BFGS-B below because I had problems
with it a good while back (and I think the link description is the cause
but I can't prove it ) so eventually I moved to the Rvmmin(b) package.
It's a package but really an algorithm. Rvmmin(b) uses a variable-metric
algorithm similar to that of L-BFGS-B but without the problem below. It's
not surprisingly a
2010 Nov 09
0
convergence message & SE calculation when using optim( )
Hi R-users,
I am trying to estimate function parameters using optim(). My count
observations follows a Poisson like distribution. The problem is that I
wanna express the lambda coefficient, in the passion likelihood
function, as a linear function of other covariates (and thus of other
coefficients). The codes that I am using (except data frame) are the
following (FYI the parameters need to be