Displaying 20 results from an estimated 400 matches similar to: "Generalized least squares using "gnls" function"
2003 Dec 04
4
Selecting subsamples
Hi all,
I?m working with a dataset with 9 columns and 2000 rows. Each row represents
an individual and one of the columns represents the volume of that individual
(measured in cubic meters). I?d like to select a sample from this dataset
(without considering any probability of the rows) in which the sum of the
volume of the individuals in that sample >= 100 cubic m.
I?ll appreciate any
2004 Jan 06
2
proxy
Hi all;
I?m working with the latest version of R under Win2000. My internet connection
(using a proxy) requires my username and password. In this situation I?m
not able to update the packages from CRAN (unless I download and install
them from a local drive). I tried looking at information on the list servers
but I couldn?t figure out how to change 'environment variables' or something
like
2005 Jul 25
1
error in gnls
Dear R users;
I'm trying to fit nonlinear model (asymptotic regression model) with gnls
from library nlme in R 2.1.0 with no big issues so far. However after
installed the version R 2.1.1, when I tried to update the initial model
including a var-cov model I've got the error: "Error: Object "convIter" not
found". This error occurs only with R 2.1.1. Any ideas?
Thanks
2003 Sep 16
2
gnls( ) question
Last week (Wed 9/10/2003, "regression questions") I posted
a question regarding the use of gnls( ) and its dissimilarity
to the syntax that nls( ) will accept. No one replied, so
I partly answered my own question by constructing indicator
variables for use in gnls( ). The code I used to construct
the indicators is at the end of this email.
I do have a nagging, unanswered
2006 Aug 04
1
gnlsControl
When I run gnls I get the error:
Error in nls(y ~ cbind(1, 1/(1 + exp((xmid - x)/exp(lscal)))), data = xy, :
step factor 0.000488281 reduced below 'minFactor' of 0.000976563
My first thought was to decrease minFactor but gnlsControl does not contain
minFactor nor nlsMinFactor (see below). It does however contain nlsMaxIter
and nlsTol which I assume are the analogs of
2007 Oct 17
2
nmle: gnls freezes on difficult case
Hi,
I am not sure this is a bug but I can repeat it, The functions and data
are below.
I know this is nasty data, and it is very questionable whether a 4pl
model
is appropriate, but it is data fed to an automated tool and I would
have hoped for an error. Does this repeat for anyone else?
My details:
> version
_
platform i686-pc-linux-gnu
2005 Jul 17
1
how to solve the step halving factor problems in gnls and nls
Hi R-users,
Could you give me some advice in
solving the problem of such error message from gnls and nls?
## begin error message
"Problem in gnls(y1 ~ glogit4(b, c, m, t, x), data.frame(x..: Step halving
factor reduced below minimum in NLS step "
##and
"Problem in nls(y ~ 1/(1 + exp((xmid - x)/scal)), data = x..: step factor
reduced below minimum "?
Thank you in
2010 May 23
4
creating a reverse geometric sequence
Hello,
Can anyone think of a non-iterative way to generate a decreasing geometric
sequence in R?
For example, for a hypothetical function dg, I would like:
> dg(20)
[1] 20 10 5 2 1
where I am using integer division by 2 to get each subsequent value in the
sequence.
There is of course:
dg <- function(x) {
res <- integer()
while(x >= 1) {
res <- c(res, x)
x
2008 Jul 03
1
rpmforge-release install/rpm problem
I wanted to install the rpmforge-release package on a new install and get
the following. Do others have the same problem?
b51:~ rpm -ivvvvvvvh http://packages.sw.be/rpmforge-release/rpmforge-
release-0.3.6-1.el5.rf.i386.rpm
Retrieving http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-
1.el5.rf.i386.rpm
D: ... as /var/tmp/rpm-xfer.qQEt9n
D: failed to open
2002 Oct 04
1
gnls from library nlme
Dear all,
I am trying to gain some experience with the function gnls from the nlme
package.
I tried to model the Theophyline data by trying to model the presumed
dependency of
the clearance on the body weight.
This is my function call of gnls:
gnls(conc~SSfol(Dose,Time,lKe,lKa,lCl),data=Theoph,
params=list(lKe~1,lKa~1,lCl~Wt),start=c(-2.4,0.46,-3.22,0.01))
That's been the result:
Error
2009 Jun 24
1
gnls : Rho
Hello list:
How to extract the value of "Rho" from a gnls() object. I am using gnls()
function similar to
res <- gnls(y~SSmicmen(),correlation=corCompSymm(form~1|b),data=dat)
Thanks in advance,
Mahbub.
--
Mahbub Latif
School of Mathematical Sciences
Queen Mary, University of London
United Kingdom
[[alternative HTML version deleted]]
2009 Jan 07
1
Extracting degrees of freedom from a gnls object
Dear all,
How can I extract the total and residual d.f. from a gnls object?
I have tried str(summary(gnls.model)) and str(gnls.model) as well as gnls(), but couldn?t find the
entry in the resulting lists.
Many thanks!
Best wishes
Christoph
--
Dr. rer.nat. Christoph Scherber
University of Goettingen
DNPW, Agroecology
Waldweg 26
D-37073 Goettingen
Germany
phone +49 (0)551 39 8807
fax +49
2008 Sep 27
1
seg.fault from nlme::gnls() {was "[R-sig-ME] GNLS Crash"}
>>>>> "VW" == Viechtbauer Wolfgang (STAT) <Wolfgang.Viechtbauer at STAT.unimaas.nl>
>>>>> on Fri, 26 Sep 2008 18:00:19 +0200 writes:
VW> Hi all, I'm trying to fit a marginal (longitudinal)
VW> model with an exponential serial correlation function to
VW> the Orange tree data set. However, R crashes frequently
VW>
2001 Sep 07
3
fitting models with gnls
Dear R-list members,
Some months ago I wrote a message on the usage of gnls (nlme library) and here I come again.
Let me give an example:
I have a 10 year length-at-age data set of 10 fishes (see growth.dat at the end of this message) and I want to fit a von Bertalanffy growth model, Li= Linf*(1-exp(-k*(ti-t0))) where Li = length at age i, Linf= asymptotic length, k= curvature parameter, ti=
2001 Jun 01
1
nls works but not gnls
This works fine:
fit42<-nls(Vfs~SSlogis(Months,Asym.Int+Asym.Group*Groupdum,xmid,scal),
data=df,
start=c(Asym.Int=22,Asym.Group=5,xmid=2,scal=6),
na.action=na.omit)
But this, identical except using gnls, doesn't converge:
fit43<-gnls(Vfs~SSlogis(Months,Asym.Int+Asym.Group*Groupdum,xmid,scal),
data=df,
start=c(Asym.Int=22,Asym.Group=5,xmid=2,scal=6),
na.action=na.omit)
Error in gnls(Vfs
2008 Sep 02
1
Non-constant variance and non-Gaussian errors with gnls
I have been using the nls function to fit some simple non-linear
regression models for properties of graphite bricks to historical
datasets. I have then been using these fits to obtain mean predictions
for the properties of the bricks a short time into the future. I have
also been calculating approximate prediction intervals.
The information I have suggests that the assumption of a normal
2014 Mar 03
1
reference classes, LAZY_DUPLICATE_OK, and external pointers
We (the lme4 authors) are having a problem with doing a proper deep
copy of a reference class object in recent versions of R-devel with
the LAZY_DUPLICATE_OK flag in src/main/bind.c enabled.
Apologies in advance for any improper terminology.
TL;DR Is there an elegant way to force non-lazy/deep copying in our
case? Is anyone else using reference classes with a field that is an
external pointer?
2005 Jul 26
1
evaluating variance functions in nlme
Hi,
I guess this is a final plea, and maybe this should go to R-help but
here goes.
I am writing a set of functions for calibration and prediction, and to
calculate standard
errors and intervals I need the variance function to be evaluated at new
prediction points.
So for instance
fit<-gnls(Y~SSlogis(foo,Asym,xmid,scal),weights=varPower())
2003 Aug 14
1
gnls - Step halving....
Hi all,
I'm working with a dataset from 10 treatments, each
treatment with 30 subjects, each subject measured 5
times. The plot of the dataset suggests that a
3-parameter logistic could be a reasonable function to
describe the data. When I try to fit the model using
gnls I got the message 'Step halving factor reduced
below minimum in NLS step'. I´m using as the initial
values of the
2006 Oct 25
1
How to specify a constant in gnls{nlme}
Hi All,
I have question about speficifying a constant in gnls() from package nlme.
Here is a testing code:
#############
library(nlme)
x = exp( rnorm(100))
y = 1/(1+x) + rnorm(100)/10
plot( y ~ x)
fm1 = gnls( y ~ 1/(1+(x/v)^w), start=list( v=1, w=1))
a =1; b=1;
fm2 = gnls( y ~ a/(b+(x/v)^w), start=list( v=1, w=1)) #This won't work
because I don't know to set $a$ and $b$ as