Displaying 20 results from an estimated 200 matches similar to: "understanding the verbose output in nlme"
2013 Jun 07
1
Function nlme::lme in Ubuntu (but not Win or OS X): "Non-positive definite approximate variance-covariance"
Dear all,
I am estimating a mixed-model in Ubuntu Raring (13.04¸ amd64), with the
code:
fm0 <- lme(rt ~ run + group * stim * cond,
random=list(
subj=pdSymm(~ 1 + run),
subj=pdSymm(~ 0 + stim)),
data=mydat1)
When I check the approximate variance-covariance matrix, I get:
> fm0$apVar
[1] "Non-positive definite
2004 Oct 18
3
manual recreation of varConstPower using new fixed effects variables in nlme
Hello, I am trying to design new variance structures
by using fixed effects variables in combination with
the VarPower function. That is, I would like to
create and evaluate my own variance function in the
data frame and then incorporate it into the model
using varPower, with value=.5.
As a start, I am trying to recreate the function of
VarConstPower by introducing two new variables in the
2001 Sep 12
1
error in nlme
I'm getting an error from nlme that has me stymied. I have a data set
,'mydata', with variables: AChE, Dose, sex, set, and mrid; 'set' and 'mrid'
indicate two levels of nesting, with 'set' nested within 'mrid'. I want to
fit the model:
mod <- nlme(AChE ~ Cexp(Dose, A, B, m), data=mydata, fixed = A+B+M~sex,
random=A+B+m~sex | mrid/set,
2009 Jan 22
1
convergence problem gamm / lme
Hope one of you could help with the following question/problem:
We would like to explain the spatial
distribution of juvenile fish. We have 2135 records, from 75 vessels
(code_tripnr) and 7 to 39 observations for each vessel, hence the random effect
for code_tripnr. The offset (‘offsetter’) accounts for the haul duration and
sub sampling factor. There are no extreme outliers in lat/lon. The model
2005 Aug 03
1
glmmPQL error in logLik.reStruct
Dear R users,
I'm attempting to fit a GLM with random effects using the tweedie family
for the error structure. I'm getting the error:
iteration 1
Error in logLik.reStruct(object, conLin) :
NA/NaN/Inf in foreign function call (arg 3)
I'm running V2.1.0
I notice from searching the lists that the same error was reported in
May 2004 by Spencer Graves, but no-one was able to
2005 Nov 08
2
Simple Nesting question/Odd error message
I'm attempting to analyze some survey data comparing multiple docks. I
surveyed all of the slips within each dock, but as slips are nested
within docks, getting multiple samples per slip, and don't really
represent any meaningful gradient, slip is a random effect. There are
also an unequal number of slips at each dock.
I'm having syntactical issues, however. When I try
2003 May 30
1
Error using glmmPQL
Can anyone shed any light on this?
> doubt.demographic.pql<-glmmPQL(random = ~ 1 | groupid/participantid,
+ fixed = r.info.doubt ~
+ realage + minority + female + education + income + scenario,
+ data = fgdata.df[coded.resource,],
+ na.action=na.omit,
+
2004 Jan 28
1
build fails to build help for nlme
Hi all,
I'm trying to build from source on Linux and getting the following error
when it tries to build the help for 'nlme':
<snip>
ranef.lme text html latex example
reStruct text html latex example
/home/sfalcon/sw/R-related/R-1.8.1/bin/INSTALL: line 1: 8133 Segmentation fault ${R_CMD} perl
2008 Jun 24
1
Error Handling
Hi All,
The for-loop below stopped when error("Cannot get confidence intervals on var-cov components: Non-positive definite approximate variance-covariance") occurred.
I assigned a row of NA values
to the data frame "m1" manually and reset "j" in the for-loop every time error returned. I’m wondering if
there is a function that can detect error or failure, so the
2006 Jan 13
1
glmmPQL: Na/NaN/Inf in foreign function call
I'm using glmmPQL, and I still have a few problems with it.
In addition to the issue reported earlier, I'm getting the following
error and I was wondering if there's something I can do about it.
Error in logLik.reStruct(object, conLin) : Na/NaN/Inf in foreign
function call (arg 3)
... Warnings:
1: Singular precistion matrix in level -1, block 4
(...)
4: ""
The
2002 May 29
1
Extracting intercept and residual std dev from lme results
Greetings-
I need to extract, programatically, the standard deviations of the
intercept and residuals from an lme model. These are presented by
print.lme as:
...
(Intercept) Residual
StdDev: 1.410635 0.7800512
...
(data taken from ?lme's examples section)
I can get the residuals with x$sigma where x is the fitted lme object. I
can't find the intercept, though. The closest
2007 May 03
2
Package contrast error
Trying to use contrast to look at differences within an lme
lme.fnl.REML <- lme(Max ~ S + Tr + Yr + Tr:Yr, random = ~1 |TID,
method = "REML")
I have three levels of Tr I'm trying to contrast among different
years (R, T97, T98), years = 1997-1999, so I'm interested in
contrasts of the interaction term.
> anova(lme.fnl.REML)
numDF denDF F-value
2005 Jun 28
1
How to extract the within group correlation structure matrix in "lme"
Dear R users,
I fitted a repeated measure model without random effects by using lme. I will use the estimates from that model as an initial estimates to do multiple imputation for missing values of the response variable in the model. I am trying to extract the within group correlation matrix or covariance matrix.
here is my code:
f = lme(y ~x0+x1+trt+tim+x1:tim +tim:trt,random=~-1|subj,
2003 Sep 03
1
glmmPQL probelm
Dear listers,
First let me appologize if the same mail arrives multiple times. Recently I
had some probelms sending my e-mails to the list.
I encountered a problem when running glmmPQL procuedure doing multilevel
modeling with a dichotomous outcome.
Those are the two error messages I usually get:
Error in logLik.reStruct(object, conLin) :
NA/NaN/Inf in foreign function call (arg 3)
2006 May 17
1
nlme model specification
Hi folks,
I am tearing my hair out on this one.
I am using an example from Pinheiro and Bates.
### this works
data(Orange)
mod.lis <- nlsList(circumference ~ SSlogis(age, Asymp, xmid, scal),
data=Orange )
### This works
mod <- nlme(circumference ~ SSlogis(age, Asymp, xmid, scal),
data=Orange,
fixed = Asymp + xmid + scal ~ 1,
start =
2003 Mar 04
2
How to extract R{i} from lme object?
Hi, lme() users,
Can some one tell me how to do this.
I model Orthodont with the same G for random
variables, but different R{i}'s for boys and girls, so
that I can get sigma1_square_hat for boys and
sigma2_square_hat for girls.
The model is Y{i}=X{i}beta + Z{i}b + e{i}
b ~ iid N(0,G) and e{i} ~ iid N(0,R{i}) i=1,2
orth.lme <- lme(distance ~ Sex * age, data=Orthodont,
random=~age|Subject,
2001 Nov 14
2
lme: how to extract the variance components?
Dear all,
Here is the question:
For example, using the "petrol" data offered with R.
pet3.lme<-lme(Y~SG+VP+V10+EP,random=~1|No,data=petrol)
pet3.lme$sigma gives the residual StdDev.
But I can't figure out how to extract the "(intercept) StdDev",
although it is in the print out if I do "summary(pet3.lme)".
In
2005 Apr 01
1
CI for Ratios of Variance components in lme?
My apologies if this is obvious:
Is there a simple way (other than simulation or bootstrapping) to obtain a
(approximate)confidence interval for the ratio of 2 variance components in a
fitted lme model? -- In particular, if there are only 2 components (1
grouping factor). I'm using nlme but lme4 would be fine, too.
-- Bert Gunter
Genentech Non-Clinical Statistics
South San Francisco, CA
2005 May 17
1
setting value arg of pdSymm() in nlme
Dear All,
I wish to model random effects that have known between-group covariance
structure using the lme() function from library nlme. However, I have yet
to get even a simple example to work. No doubt this is because I am
confusing my syntax, but I would appreciate any guidance as to how. I have
studied Pinheiro & Bates carefully (though it's always possible I've
missed
2013 Oct 26
2
Problems with lme random slope+intercept model
Dear all,
I'm trying to fit a model on ecological data in which I have measured a few
biotic and abiotic factors over the course of a few days in several
individuals. Specifically, I'm interested in modelling y ~ x1, with x2, x3,
and 'factor' as independent variables. Because data suggests both slope and
intercept (for y ~x1) might differ between individuals, I'd want to