Displaying 20 results from an estimated 1000 matches similar to: "Interpretation of residual variance components and scale parameters in GLMMs"
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
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
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
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.
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 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))
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
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
2008 Jan 04
1
GLMMs fitted with lmer (R) & glimmix (SAS)
I'm fitting generalized linear mixed models to using several fixed effects (main effects and a couple of interactions) and a grouping factor (site) to explain the variation in a dichotomous response variable (family=binomial). I wanted to compare the output I obtained using PROC GLIMMIX in SAS with that obtained using lmer in R (version 2.6.1 in Windows). When using lmer I'm specifying
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
2008 Sep 27
1
Using the mcmcsamp function
Hello,
I'm building a couple of mixed models using the lmer function.
The actual modelling is going well, but doing some reading on the use of
crossed random effects and the comparison of models with and without
random effects it is clear that I need to generate some Markov Chain Monte
Carlo samples. However, I'm struggling because everyone time I go to
generate a sample I get the
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 Oct 18
0
extracting residual variance from glmmPQL
Dear all,
I am trying to simulate data sets from a model fitted with glmmPQL, in
order to compute the distribution of a summary statistics. My data are
binomial and I have a correlation term in my model. My model is
structured in the following way
m <- glmmPQL( fixed = cbind(sucess,failure) ~ x1 + x2 + ... ,
random = ~ 1 | bidon,
correlation = corGaus(form=~
2012 Nov 15
1
confidence intervals with glmmPQL
Hi - I am using R version 2.13.0. I have run several GLMMs using the glmmPQL
function to model the proportion of fish caught in one net to the total
caught in both nets by length. I started with a polynomial regression full
model with three length terms: l, l^2, and l^3 (l=length). The length terms
and intercept were the fixed effects and the random effect was a paired haul
(n=18).
2018 Feb 26
0
How to model repeated measures negative binomial data with GEE or GLMM
Goal: use GEE or GLMM to analyze repeated measures data in R
GEE problem: can?t find a way to do GEE with negative binomial family in R
GLMM problem: not sure if I?m specifying random effect correctly
Study question: Does the interaction of director and recipient group affect
rates of a behavior?
Data:
Animals (n = 38) in one of 3 groups (life stages): B or C.
Some individuals (~5)
2007 May 02
1
Degrees of freedom in repeated measures glmmPQL
Hello,
I've just carried out my first good-looking model using glmmPQL, and
the output makes perfect sense in terms of how it fits with our
hypothesis and the graphical representation of the data. However,
please could you clarify whether my degrees of freedom are
appropriate?
I had 106 subjects,
each of them was observed about 9 times, creating 882 data points.
The subjects were in 3