Displaying 20 results from an estimated 4000 matches similar to: "bug in either glmmPQL or lme/lmer"
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
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
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,
+
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)
2003 May 16
0
glmmPQL, NA/NaN/Inf in foreign function call (arg 3)
Dear all,
I try to fit a glmmPQL on a huge data with 384189 individuals id=1:384189:
working in 1520 establishments est:1:1516. The minimum number of individuals
in every establishment is 30.
This works for a subsample excluding establishemnet cells smaller than 100,
but fail when we include smaller cells:
R> summary(glmmPQL(count ~
+ I( age-ave(age,est) )* ave(age,est) +
+ I(
2004 May 29
0
glmmPQL:
I'm getting a strange error from glmmPQL. Consider the following
sample code:
set.seed(8)
N. <- 1000
z <- rnorm(N.)
pr.good <- exp(-1e-4*exp(2+2*z))
quantile(pr.good)
DF. <- data.frame(yield=rbinom(N., N., pr.good)/N.,
Offset=rep(-10, N.), nest=1:N.)
fit <- glmmPQL(fixed=1-yield~offset(Offset), random=~1|nest,
family=binomial(link="cloglog"),
2005 Dec 30
2
unexpected "false convergence"
I've come into some code that produces different results under R 2.1.1 and R
2.2.1. I'm really unfamiliar with the libraries in question (MASS and nlme),
so I don't know if this is a bug in my code, or a regression in R. If it's a
bug on my end, I'd appreciate any advice on potential causes and relevant
documentation.
The code:
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
2003 May 28
1
Bradley Terry model and glmmPQL
Dear R-ers,
I am having trouble understanding why I am getting an error using glmmPQL (library MASS).
I am getting the following error:
iteration 1
Error in MEEM(object, conLin, control$niterEM) :
Singularity in backsolve at level 0, block 1
The long story:
I have data from an experiment on pairwise comparisons between 3 treatments (a, b, c). So a typical run of an experiment
2010 Sep 10
0
covariance matrix structure for random effect in glmmPQL
Dear all,
I'm using R function "glmmPQL" in "MASS" package for generalized linear mixed model considering the temporal correlations in random effect. There are 1825 observations in my data, in which the random effect is called "Date", and there are five levels in "Date", each repeats 365 times.
When I tried
2007 May 18
0
gls() error
Hi All
How can I fit a repeated measures analysis using gls? I want to start with a
unstructured correlation structure, as if the the measures at the occations are
not longitudinal (no AR) but plainly multivariate (corSymm).
My data (ignore the prox_pup and gender, occ means occasion):
> head(dta,12)
teacher occ prox_self prox_pup gender
1 1 0 0.76 0.41 1
2
2005 Oct 13
0
nlme gls() error
Hello
I'm fitting a gls model with a variance-covariance structure and an
getting an error message I don't understand
I'm using gls() from the nlme library with the structure defined by
correlation = corSymm(form = ~1|Subject), weights = varIdent(form=~1|strata)
I get the error
Error in recalc.corSymm(object[[i]], conLin) :
NA/NaN/Inf in foreign function call (arg 1)
My
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
2005 Aug 03
1
Multilevel logistic regression using lmer vs glmmPQL vs.gllamm in Stata
>On Wed, 3 Aug 2005, Bernd Weiss wrote:
>
>> I am trying to replicate some multilevel models with binary outcomes
>> using R's "lmer" and "glmmPQL" and Stata's gllmm, respectively.
>
>That's not going to happen as they are not using the same criteria.
the glmmPQL and lmer both use the PQL method to do it ,so can we get the same result by
2008 Jul 14
0
Question regarding lmer vs glmmPQL vs glmm.admb model on a negative binomial distributed dependent variable
Hi R-users,
I intend to apply a mixed model on a set of longitudinal data, with a negative binomial distributed dependent variable, and after following the discussions on R help list I saw that more experienced people recommended using lmer (from lme4 pack), glmmPQL (from MASS) or glmm.admb (from glmmADMB pack)
My first problem: yesterday this syntax was ok, now I get this weird message (I
2005 Aug 03
2
Multilevel logistic regression using lmer vs glmmPQL vs. gllamm in Stata
Dear all,
I am trying to replicate some multilevel models with binary outcomes
using R's "lmer" and "glmmPQL" and Stata's gllmm, respectively.
The data can be found at <http://www.uni-koeln.de/~ahf34/xerop.dta>.
The relevant Stata output can be found at <http://www.uni-
koeln.de/~ahf34/stataoutput.txt>. First, you will find the
unconditional model,
2009 Jul 16
0
how to get means and confidence limits after glmmPQL or lmer
R,
I want to get means and confidence limits on the original scale for
the treatment effect after running a mixed model.
The data are:
response<-c(16,4,5,8,41,45,10,15,11,3,1,64,41,23,18,16,10,22,2,3)
2005 Nov 01
3
glmmpql and lmer keep failing
Hello,
I'm running a simulation study of a multilevel model with binary
response using the binomial probit link. It is a random intercept and
random slope model. GLMMPQL and lmer fail to converge on a
*significant* portion of the *generated* datasets, while MlWin gives
reasonable estimates on those datasets. This is unacceptable. Does
anyone has similar experiences?
Regards,
Roel de
2013 Jul 11
1
Differences between glmmPQL and lmer and AIC calculation
Dear R Community,
I?m relatively new in the field of R and I hope someone of you can
help me to solve my nerv-racking problem.
For my Master thesis I collected some behavioral data of fish using
acoustic telemetry. The aim of the study is to compare two different
groups of fish (coded as 0 and 1 which should be the dependent
variable) based on their swimming activity, habitat choice, etc.
2005 Dec 05
2
lmer and glmmPQL
I have been looking into both of these approaches to conducting a GLMM,
and want to make sure I understand model specification in each. In
particular - after looking at Bates' Rnews article and searching through
the help archives, I am unclear on the specification of nested factors
in lmer. Do the following statements specify the same mode within each
approach?
m1 = glmmPQL(RICH ~ ZONE,