Displaying 20 results from an estimated 2000 matches similar to: "NLME 3 (R version) again!"
2005 Nov 17
1
anova.gls from nlme on multiple arguments within a function fails
Dear All --
I am trying to use within a little table producing code an anova
comparison of two gls fitted objects, contained in a list of such
object, obtained using nlme function gls.
The anova procedure fails to locate the second of the objects.
The following code, borrowed from the help page of anova.gls,
exemplifies:
--------------- start example code ---------------
library(nlme)
##
2000 Mar 07
1
Problems with nlme (PR#471)
Dear R developers,
first of all let me join the chorus of congratulations for the release
of R 1.0.0. Well, done!
Unfortunately, I find it necessary to e-mail in a bug report regarding
the `nlme' package. On my office machine I experience the following
trouble:
bossiaea:/opt/R$ R CMD check -c nlme
Checking package `nlme' ...
Massaging examples into `nlme-Ex.R' ...
Running
2003 Nov 18
5
mixed model for Splus and R
Hi there,
I try to compare the mixed model package "lme" by Splus and R. I used the
dataset "Ovary" and the following code assuming AR(1) model for the error term:
lme(follicles ~ sin(2*pi*Time) + cos(2*pi*Time), data=Ovary, random =
pdDiag(~sin(2*pi*Time) ) , correlation=corAR1() )
But I got different results! And then I used a simpler model:
lme(follicles ~
2004 Apr 22
1
lme correlation structure error
Hi there fellow R-users,
I am trying to follow an example of modelling a serial correlation structure
in the textbook "Mixed Effects Model in S and Splus".
However, I am getting some very odd results. Here is what I am trying to
run:
library(nlme)
data(Ovary)
fm1<-lme(follicles~sin(2*pi*Time)+cos(2*pi*Time),data=Ovary,random=pdDiag(~s
in(2*pi*Time)))
### The example is fine up
2006 Nov 06
1
question about function "gls" in library "nlme"
Hi:
The gls function I used in my code is the following
fm<-gls(y~x,correlation=corARMA(p=2) )
My question is how to extact the AR(2) parameters from "fm".
The object "fm" is the following. How can I extract the correlation parameters
Phi1 and Phi2 from "fm"? These two parametrs is not in the "coef" componenet of "fm".
Thanks a
2007 Jan 30
0
lme : Error in y[revOrder] - Fitted : non-conformable arrays
Greetings R-helpers,
I am attempting to fit an lme() while specifying a correlation
structure, but I'm getting into trouble long before I get to that point.
I am receiving the error:
Error in y[revOrder] - Fitted : non-conformable arrays
It doesn't seem to matter how simple or complex the model I specify is,
it always gives this same error message. This makes me suspect
something is
2008 Jun 11
0
ARMA random effects?
Hi, All:
Is there a way to get random effects for ARMA parameters?
Consider the following example from the 'corARMA' help page:
fm1Ovar.lme <- lme(follicles ~ sin(2*pi*Time) + cos(2*pi*Time),
data = Ovary, random = pdDiag(~sin(2*pi*Time)))
fm5Ovar.lme <- update(fm1Ovar.lme,
corr = corARMA(p = 1, q = 1))
fm5Ovar.lme
Linear
2004 Jul 30
1
lme: problems with corARMA
Trying following example from Pinheiro and Bates in order to fit an
ARMA(1,1) model:
library(nlme)
fm1Ovary.lme<-lme(follicles~sin(2*pi*Time)+cos(*pi*Time),data=Ovary,random=p
dDiag(~sin(2*pi*Time)))
fm5Ovary.lme<-update(fm1Ovary.lme,corr=corARMA(p=1,q=1))
I get follwing error message:
Error in "coef<-.corARMA"(`*tmp*`, value = c(62.3428455941166,
62.3428517930051 :
2007 Mar 13
0
segfault with correlation structures in nlme
Hi out there,
I am trying to fit a species accumulation curve (increase in number of
species known vs. sampling effort) for multiple regions and several
bootstrap samples. The bootstrap samples represent different
arrangements of the actual sample sequence.
I fitted a series of nlme-models and everything seems OK, but since the
observations are correlated I tried to include some correlation
2012 May 02
3
Consulta gráfica
Hola,
Por favor, ¿podríais indicarme qué recursos (librerías o ideas) pueden resultar de utilidad para crear un gráfico del estilo del de la figura 3.8 del siguiente link?
http://www.tsc.uvigo.es/BIO/Bioing/ChrLDoc3.html#3.5
Actualmente estoy utilizando funciones muy básicas y la verdad es que no me encuentro muy satisfecha con el resultado.
Muchas gracias.
Eva
[[alternative HTML
2007 Dec 28
1
two plots on the same page
I'd like to know why I cannot get a plot and the QQnorm in the same sheet.
The commands are simple but:
library(nlme)
glmod1 <- gls(upfmla,correlation=corAR1(),method="ML")
summary(glmod1)
par(mfrow = c(2,1))
plot(glmod1, main="GLS Residuals vs. GLS Fitted")
qqnorm(glmod1)
No matter what (I tried different permutations of the plotting commands) the
second drawing
2004 Jan 21
0
intervals in lme() and ill-defined models
There has been some recent discussion on this list about the value of using
intervals with lme() to check for whether a model is ill-defined. My
question is, what else can drive very large confidence intervals for the
variance components (or cause the error message "Error in
intervals.lme(Object) : Cannot get confidence intervals on var-cov
components: Non-positive definite approximate
2006 Mar 13
2
Error Message from Variogram.lme Example
When I try to run the example from Variogram with an lme object, I get
an error (although summary works):
R : Copyright 2005, The R Foundation for Statistical Computing
Version 2.2.1 (2005-12-20 r36812)
ISBN 3-900051-07-0
...
> fm1 <- lme(weight ~ Time * Diet, BodyWeight, ~ Time | Rat)
Error: couldn't find function "lme"
> Variogram(fm1, form = ~ Time | Rat, nint =
2010 Feb 01
1
strings plots
Hi all !
I'm new in this list and newbie about R
I'm trying to use R scripts (as in the attached file) for creating some distributions plots of data retrieved by a workflow(with Rserve, to be precise).
I was able to do it (even if not in a beatiful way, I have to improve it especially about labels and coordinates) with number inputs like :
2002 Feb 13
1
nlme package dependencies?
Dear R-help,
The following nlme example, from help(Variogram.gls), does not work on my
system.
> data(BodyWeight)
> fm1 <- gls(weight ~ Time * Diet, BodyWeight)
> Variogram(fm1, form = ~ Time | Rat)[1:10,]
Error in FUN(X[[1]], ...) : unused argument(s) (method ...)
It looks like I might not have loaded a necessary package. I did load nls
and lattice (the latter not actually being
2009 Jun 10
2
plot two variograms on a same graph
Hi,
I would know how to plot two variograms on a same graph. I can plot one by one but I would draw both on the same one.
Is it possible? Do i need any special package?
Thanks!
Cordialement
Damien Landais
2012 Jul 01
8
Regresión lineal múltiple: modelo polinómico de grado 3 superpuesto a componentes cosenoidales
Hola:
Tengo un modelo de regresión lineal en el cual las componentes son cosenoidales, y lo construyo del siguiente modo:
modelo = "y ~ I(t) + I(t^2) + I(t^3) + x1[, 1] + x2[, 1]"
x1[, 1] = cos(2 * pi * t / periods[1])
x2[, 1] = sin(2 * pi * t / periods[1])
for (i in 2:nComp) {
x1[, i] = cos(2 * pi * t / periods[i])
x2[, i] = sin(2 * pi * t / periods[i])
modelo =
2015 Aug 04
2
Duda interpolación (package ' gstat ')
Hola,
# Hacemos el KED. Ver función "krige()":
KED.rad <- krige(
formula=pluvPcp~layer, # covariable -> radar
locations=lluvia.rad.pluv.spdf,
newdata=radarGrid, # podría ser cualquier objeto Spatial
model=v.fit, # modelo de semivariograma.
maxdist=Inf
2006 Jan 05
1
Problem with nlme version 3.1-68
Dear All:
I updated my R program as well as associated packages yesterday. Currently
my R version is 2.2.1 running under WINXP SP-2.
When I tried to list (summary) an nlme object that I developed before, I got
the following error message:
[ Error in .C("ARMA_constCoef", as.integer(attr(object, "p")),
as.integer(attr(object, :
C entry point "ARMA_constCoef"
2015 Aug 06
2
Duda interpolación (package ' gstat ')
Sale plano sí.
Ya se que sin tener los datos y el código es un poco difícil, pero es que mis datos ocupan mucho, es imposible.
Seguiré mirando por internet.
Muchas gracias Rubén.
Un saludo,
> To: r-help-es en r-project.org
> From: rubenfcasal en gmail.com
> Date: Thu, 6 Aug 2015 14:21:47 +0200
> Subject: Re: [R-es] Duda interpolación (package ' gstat ')
>
> Hola