Displaying 20 results from an estimated 2000 matches similar to: "anova.gls from nlme on multiple arguments within a function fails"
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
2000 Jul 31
2
NLME 3 (R version) again!
Hi,
Well after trying to fix the assign commands in version 3.1.7 of your nlme package
I still cannot get the plot functions to work. Basically I have no other packages installed (apart from those provided with R) so nlme is the first.
my R version info is;
platform sparc-sun-solaris2.7
arch sparc
os solaris2.7
system sparc, solaris2.7
status
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
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 ~
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
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 :
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
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
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
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
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 :
2008 May 27
3
How to test significant differences for non-linear relationships for two locations
Hi List,
I have to compare a relationship between y and x for two locations. I found logistic regression fits both datasets well, but I am not sure how to test if relationships for both sites are significantly different. I searched the r site, however no answers exactly match the question.
I used Tukey's HSD to compare two means, but the relationship in my study was not simply linear. So I
2006 Oct 18
1
lmer- why do AIC, BIC, loglik change?
Hi all,
I am having issues comparing models with lmer. As an example, when
I run the code below the model summaries (AIC, BIC, loglik) differ between
the summary() and anova() commands. Can anyone clear up what's wrong?
Thank you!
Darren Ward
library(lme4)
data(sleepstudy)
fm1<-lmer(Reaction ~ Days + (1|Subject), sleepstudy)
summary(fm1)
fm2<-lmer(Reaction ~ Days +
2002 Dec 15
2
Interpretation of hypothesis tests for mixed models
My question concerns the logic behind hypothesis tests for fixed-effect
terms in models fitted with lme. Suppose the levels of Subj indicate a
grouping structure (k subjects) and Trt is a two-level factor (two
treatments) for which there are several (n) responses y from each
treatment and subject combination. If one suspects a subject by
treatment interaction, either of the following models seem
2005 Sep 25
2
summary nls output
Dear R user:
I bulid a package, and in the package I use the function "nls"
to solve some questions. If I have two sets of data, and I want to
summary these two data's nls output, I write the command in the
package source code like:
{
..........
summary(fm1)
summary(fm2)
}
then i compiler the package and use "Install package(s) from
local zip files" to install my
2009 Sep 06
3
linear mixed model question
Hello,
I wanted to fit a linear mixed model to a data that is similar in
terms of design to the 'Machines' data in 'nlme' package except that
each worker (with triplicates) only operates one machine. I created a
subset of observations from 'Machines' data such that it looks the
same as the data I wanted to fit the model with (see code below).
I fitted a model in
2012 Jan 17
1
MuMIn package, problem using model selection table from manually created list of models
The subject says it all really.
Question 1.
Here is some code created to illustrate my problem, can anyone spot where I'm going wrong?
Question 2.
The reason I'm following a manual specification of models relates to the fact that in reality I am using mgcv::gam, and I'm not aware that dredge is able to separate individual smooth terms out of say s(a,b). Hence an additional request,
2011 Feb 06
1
anova() interpretation and error message
Hi there,
I have a data frame as listed below:
> Ca.P.Biomass.A
P Biomass
1 334.5567 0.2870000
2 737.5400 0.5713333
3 894.5300 0.6393333
4 782.3800 0.5836667
5 857.5900 0.6003333
6 829.2700 0.5883333
I have fit the data using logistic, Michaelis?Menten, and linear model,
they all give significance.
> fm1 <- nls(Biomass~SSlogis(P, phi1, phi2, phi3), data=Ca.P.Biomass.A)
2006 Mar 29
1
Lmer BLUPS: was(lmer multilevel)
Paul:
I may have found the issue (which is similar to your conclusion). I
checked using egsingle in the mlmRev package as these individuals are
strictly nested in this case:
library(mlmRev)
library(nlme)
fm1 <- lme(math ~ year, random=~1|schoolid/childid, egsingle)
fm2 <- lmer(math ~ year +(1|schoolid:childid) + (1|schoolid), egsingle)
Checking the summary of both models, the output is