Displaying 20 results from an estimated 10000 matches similar to: "lmer and a response that is a proportion"
2011 Apr 21
1
Accounting for overdispersion in a mixed-effect model with a proportion response variable and categorical explanatory variables.
Dear R-help-list,
I have a problem in which the explanatory variables are categorical,
the response variable is a proportion, and experiment contains
technical replicates (pseudoreplicates) as well as biological
replicated. I am new to both generalized linear models and mixed-
effects models and would greatly appreciate the advice of experienced
analysts in this matter.
I analyzed the
2007 Feb 27
1
How to put the dependent variable in GLM proportion model
Hello everyone,
I am confused about how the dependent variable should be specified, e.g.
say S and F denote series of successes and failures. Is it
share<-S/(S+F)
glm(share~x,family=quasibinomial)
or
glm(cbind(S,F)~x,family=quasibinomial)
The two variants produce very different dispersion parameter and deviances.
The book by Crawley, the only one R-book a have, says the second variant is
2008 Sep 16
1
Using quasibinomial family in lmer
Dear R-Users,
I can't understand the behaviour of quasibinomial in lmer. It doesn't
appear to be calculating a scaling parameter, and looks to be reducing the
standard errors of fixed effects estimates when overdispersion is present
(and when it is not present also)! A simple demo of what I'm seeing is
given below. Comments appreciated?
Thanks,
Russell Millar
Dept of Stat
U.
2006 Jan 25
1
About lmer output
Dear R users:
I am using lmer fo fit binomial data with a probit link function:
> fer_lmer_PQL<-lmer(fer ~ gae + ctipo + (1|perm) -1,
+ family = binomial(link="probit"),
+ method = 'PQL',
+ data = FERTILIDAD,
+ msVerbose= True)
The output look like this:
> fer_lmer_PQL
Generalized linear mixed model fit
2008 Oct 12
2
Overdispersion in the lmer models
Dear All,
I am working with linear mixed-effects models using the lme4 package in R. I created a model using the lmer function including some main effects, a three-way interaction and a random effect.
Because I work with a binomial and poisson distribution, I want to know whether there is overdispersion in my data or not. Does anybody know how I can retrieve this information from R?
Thank you
2007 Mar 23
1
lmer estimated scale
I have data consisting of binary responses from a large number of
subjects on seven similar items. I have been using lmer with
(crossed) random effects for subject and item. These effects are
almost always (in the case of subject, always) significant additions
to the model, testing this with anova. Including them also increases
the Somers' Dxy value substantially.
Even without those
2008 Aug 08
2
[lme4]Coef output with binomial lmer
Dear R users
I have built the following model
m1<-lmer(y~harn+foodn+(1|ass%in%pop%in%fam),family = "quasibinomial")
where y<-cbind(alive,dead)
where harn and foodn are categorical factors and the random effect is a
nested term to represent experimental structure
e.g. Day/Block/Replicate
ass= 5 level factor, pop= 2 populations per treatment factor in each
assay, 7 reps
2009 Mar 10
1
help structuring mixed model using lmer()
Hi all,
This is partly a statistical question as well as a question about R, but I am stumped!
I have count data from various sites across years. (Not all of the sites in the study appear in all years). Each site has its own habitat score "habitat" that remains constant across all years.
I want to know if counts declined faster on sites with high "habitat" scores.
I can
2006 Mar 08
1
Want to fit random intercept in logistic regression (testing lmer and glmmML)
Greetings. Here is sample code, with some comments. It shows how I
can simulate data and estimate glm with binomial family when there is
no individual level random error, but when I add random error into the
linear predictor, I have a difficult time getting reasonable estimates
of the model parameters or the variance component.
There are no clusters here, just individual level responses, so
2011 Aug 27
1
hopelessly overdispersed?
dear list!
i am running an anlysis on proportion data using binomial (quasibinomial
family) error structure. My data comprises of two continuous vars, body
size and range size, as well as of feeding guild, nest placement, nest
type and foragig strata as factors. I hope to model with these variables
the preference of primary forests (#successes) by certain bird species.
My code therefore looks
2005 Sep 22
3
anova on binomial LMER objects
Dear R users,
I have been having problems getting believable estimates from anova on a
model fit from lmer. I get the impression that F is being greatly
underestimated, as can be seen by running the example I have given below.
First an explanation of what I'm trying to do. I am trying to fit a glmm
with binomial errors to some data. The experiment involves 10
shadehouses, divided between
2008 Jul 07
1
GLM, LMER, GEE interpretation
Hi, my dependent variable is a proportion ("prob.bind"), and the independent
variables are factors for group membership ("group") and a covariate
("capacity"). I am interested in the effects of group, capacity, and their
interaction. Each subject is observed on all (4) levels of capacity (I use
capacity as a covariate because the effect of this variable is normatively
2008 May 07
2
Estimating QAIC using glm with the quasibinomial family
Hello R-list. I am a "long time listener - first time caller" who has
been using R in research and graduate teaching for over 5 years. I
hope that my question is simple but not too foolish. I've looked
through the FAQ and searched the R site mail list with some close hits
but no direct answers, so...
I would like to estimate QAIC (and QAICc) for a glm fit using the
2009 Feb 16
1
Overdispersion with binomial distribution
I am attempting to run a glm with a binomial model to analyze proportion
data.
I have been following Crawley's book closely and am wondering if there is
an accepted standard for how much is too much overdispersion? (e.g. change
in AIC has an accepted standard of 2).
In the example, he fits several models, binomial and quasibinomial and then
accepts the quasibinomial.
The output for residual
2010 Nov 19
2
Question on overdispersion
I have a few questions relating to overdispersion in a sex ratio data set
that I am working with (note that I already have an analysis with GLMMs for
fixed effects, this is just to estimate dispersion). The response variable
is binomial because nestlings can only be male or female. I have samples of
1-5 nestlings from each nest (individuals within a nest are not independent,
so the response
2008 Jun 26
1
lmer model with continuos non normal response variable, transformation needed?
Hi.
I want to do an lmer model but have doubts of what family I should use.
My response variable was originally a proportion, however I standarized it
for each year of data collection (20 in total). After standarizing it I
checked for normality with the Kolmogorov-Smirnov test, and it turns out
it is not normal. It ranges from -3 to 4.
Since it is no longer a proportion I can't use a
2012 Mar 19
4
regression with proportion data
Hello,
I want to determine the regression relationship between a proportion (y)
and a continuous variable (x).
Reading a number of sources (e.g. The R Book, Quick R,help), I believe I
should be able to designate the model as:
model<-glm(formula=proportion~x, family=binomial(link="logit"))
this runs but gives me error messages:
Warning message:
In eval(expr, envir, enclos) :
2007 Aug 03
1
extracting dispersion parameter from quasipoisson lmer model
Hi,
I would like to obtain the dispersion parameter for a quasipoisson model for later use in calculating QAIC values for model comparison.Can anyone suggest a method of how to go about doing this?
The idea I have now is that I could use the residual deviance divided by the residual degrees of freedom to obtain the dispersion parameter. The residual deviance is available in the summary
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
2006 Jun 14
1
lmer and mixed effects logistic regression
I'm using FC4 and R 2.3.1 to fit a mixed effects logistic regression.
The response is 0/1 and both the response and the age are the same for
each pair of observations for each subject (some observations are not
paired). For example:
id response age
1 0 30
1 0 30
2 1 55
2 1 55
3 0 37
4 1 52
5 0 39
5 0 39
etc.
I get the