Displaying 20 results from an estimated 400 matches similar to: "GLMMs fitted with lmer (R) & glimmix (SAS)"
2012 Nov 12
1
R lmer & SAS glimmix
Hi,
I am trying to fit a model with lmer in R and proc glimmix in SAS. I have
simplified my code but I am surprised to see I get different results from
the two softwares.
My R code is :
lmer(y~age_cat + (1|cat),data=fic,family=binomial(link = "logit"), NaGQ=1)
My SAS code is :
ods output Glimmix.Glimmix.ParameterEstimates=t_estimates;
proc glimmix data=tab_psi method=laplace;
2005 Dec 29
1
Glimmix and glm
Hello.
Some months age an e-mail was posted in which a comparison between Glimmix
and glm was discussed. I have not been able to find that e-mail on the R
archive. Does anyone recall the date of the above e-mail?
Thank you very much.
*******************************************
Antonio Paredes
USDA- Center for Veterinary Biologics
Biometrics Unit
510 South 17th Street, Suite 104
Ames, IA 50010
2012 Jun 19
1
Pseudolikelihood Estimation of spatial GLMM using R
Dear R users,
I've been trying to find an R package which does the PL estimation of
spatial GLMMs especially with the negative binomial model. so it would be
something similar to the "proc GLIMMIX" with the PL method in SAS. I've
looked up some possible packages related to GLMMs, but it doesn't seem to be
anyone using the PL estimation.
Thanks for your help!
Fei He
UCR
2005 Apr 13
0
Summary: GLMMs: Negative Binomial family in R
Here is a summary of responses to my original email (see my query at the
bottom). Thank you to Achim Zeileis , Anders Nielsen, Pierre Kleiber and Dave
Fournier who all helped out with advice. I hope that their responses will help
some of you too.
*****************************************
Check out
glm.nb() from package MASS fits negative binomial GLMs.
2004 Mar 19
0
yags, GEEs and GLMMs
Dear R-ers,
I am just a simple 'end-user' of R and am trying to analyse data with a binary response variable (dead or alive) in relation to weight and sex (of young birds). As some of the birds have the same biological mother, I am using mixed models with the identity of the mother as a random factor. (please, Mick Crawley, when are you going to write a chapter on mixed models with binary
2000 Dec 15
0
Gibbs sampling in GLMMs: Beta testers required
Sort of a warning before I start: This post may be considered to
describe a rather amateurish approach to distributing software
which may annoy some people, but I sincerely hope it doesn't.
I've been working for some years with David Clayton on a project which
started life as
an S package but has now turned into an R library. It is (now)
called GLMMGibbs and estimates the parameters of
2005 Mar 07
0
Questions about glmms.
Hi,
I have a couple of questions related to glmm (glmmPQL
in MASS and GLMM in lme4).
1) is there some way do obtain the fitted values by
group, similar to:
> predict(dbd.glmmPQL, dbd.cytdens,
+ type="response", level=0)
where dbd.glmmPQL is the fitted model and dbd.cytdens
is a data frame with a subset of the factors?
2) when I double-click on a saved workspace
2002 Feb 13
0
glmms with negative binomial responses
I am trying to find a way to analyze a "simple" mixed model with two
levels of a treatment, a random blocking factor, and (wait for it)
negative binomial count distributions as the response variable. As far as
I can tell, the currently available R offerings (glmmGibbs, glmmPQL in
MASS, and Jim Lindsey's glmm code) aren't quite up to this. From what I
have read (e.g.
2004 Mar 19
0
yags, GEEs, and GLMMs
Dear R-ers,
I am just a simple 'end-user' of R and am trying to analyse data with a binary response variable (dead or alive) in relation to weight and sex (of young birds). As some of the birds have the same biological mother, I am using mixed models with the identity of the mother as a random factor. (please, Mick Crawley, when are you going to write a chapter on mixed models with binary
2007 Mar 23
0
p-values for GLMMs
Hi there,
I have a question about the GLMM that I'm doing, that a statistician
friend suggested I should have for my analysis. I would like to know if
there's any way of obtaining a p value and R square for the full model
(and not each variable separately) as to asses whether this model is
somewhat appropriate or not. Can one do this for a GLMM in the lme4
package?
The other thing I
2008 Sep 17
1
GLMMs
Hi everyone,
I'm trying to fit a generalized linear mixed effects model (logistic) in
R and am having some trouble specifying the covariance structure for the
random effects. I'm using glmer, which by default assumes an
unstructured relationship between the random effects, but I want the
structure to be a multiple of an identity. Here is my code:
glmer(y ~ 1 + (x1 + x2 + x3 + x4
2012 Apr 26
0
Correlated random effects: comparison unconditional vs. conditional GLMMs
In a GLMM, one compares the conditional model including covariates with the
unconditional model to see whether the conditional model fits the data
better.
(1) For my unconditional model, a different random effects term fits better
(independent random effects) than for my conditional model (correlated
random effects). Is this very uncommon, and how can this be explained? Can
I compare these models
2005 Dec 09
1
Residuals from GLMMs in the lme4 package
Hello there
This is the first time I have used r-help message board so I hope I have got
the right address.
I am trying to check the residuals of a GLMM model(run using the package
lme4). I have been able to check the residiuals of REMLs in lme4 using the
following:
m1<-lmer(vTotal~Week+fCollar+ (1|fCat), collars)
res<-resid(m1)
plot(res)
qqnorm(res)
library(MASS)
par(mfrow=c(2,3))
2007 Oct 01
0
Interpretation of residual variance components and scale parameters in GLMMs
Dear R-listers,
I am working with generalized linear mixed models to quantify the
variance due to two nested random factors, but have hit a snag in the
interpretation of variance components. Despite my best efforts with
Venables & Ripley 2002, Fahrmeir & Tutz 2001, R-help archives, Google,
and other eminent sources (i.e. local R gurus), I have not been able
to find a definitive answer
2004 May 13
3
GLMMs & LMEs: dispersion parameters, fixed variances, design matrices
Three related questions on LMEs and GLMMs in R:
(1) Is there a way to fix the dispersion parameter (at 1) in either glmmPQL (MASS) or GLMM (lme4)?
Note: lme does not let you fix any variances in advance (presumably because it wants to "profile out" an overall sigma^2 parameter) and glmmPQL repeatedly calls lme, so I couldn't see how glmmPQL would be able to fix the dispersion
2006 Apr 23
1
Comparing GLMMs and GLMs with quasi-binomial errors?
Dear All,
I am analysing a dataset on levels of herbivory in seedlings in an
experimental setup in a rainforest.
I have seven classes/categories of seedling damage/herbivory that I want to
analyse, modelling each separately.
There are twenty maternal trees, with eight groups of seedlings around each.
Each tree has a TreeID, which I use as the random effect (blocking factor).
There are two
2005 Mar 23
1
Negative binomial GLMMs in R
Dear R-users,
A recent post (Feb 16) to R-help inquired about fitting
a glmm with a negative binomial distribution.
Professor Ripley responded that this was a difficult problem with the
simpler Poisson model already being a difficult case:
https://stat.ethz.ch/pipermail/r-help/2005-February/064708.html
Since we are developing software for fitting general nonlinear random
effects models we
2012 May 26
2
Assessing interaction effects in GLMMs
Dear R gurus
I am running a GLMM that looks at whether chimpanzees spend time in shade
more than sun (response variable 'y': used cbind() on counts in the sun and
shade) based on the time of day (Time) and the availability of shade
(Tertile). I've included some random factors too which are the chimpanzee
in question (Individual) and where they are in a given area (Zone). There
are
2008 Nov 07
1
AIC value in lmer
Dear R Users,
May be this message should be directy send to Douglas Bates ...
I just want to know if I can use the AIC value given in the output of an lmer model to classify my logistic models.
I heard that the AIC value given in GLIMMIX output (SAS) is false because it come from a calculation based on pseudo-likelyhood.
Is it the same for lmer ???
thanks,
Arnaud
Arnaud MOSNIER
Biologiste
2012 Feb 24
1
code for mixed model in R?
Dear
I am analysing my data wit a mixed model. I used SAS but I want to redo the
same analysis in R. Here the SAS code and what I wrote in R. It seems to
work but the results are not the same. I don't know how to specify the class
variable in R or specify the variance matrix. Can you please help me?
Thanks
Jurgen
## SAS:
proc glimmix data=trend method=RSPL;
class pid;
model mdrfinal