Displaying 20 results from an estimated 4000 matches similar to: "FW: glmmPQL and random factors"
2004 Jun 07
0
dfs in lme
Dear R-mixed-effects-modelers,
I could not answer this questions with the book by Pinheiro & Bates and did
not find anything appropriate in the archives, either ...
We are preparing a short lecture on degrees of freedom and would like to
show lme's as an example as we often need to work with these. I have a
problem in understanding how many dfs are needed if random terms are used
for
2004 May 13
0
glmmPQL - predict (..., type= 'response')?
Dear R users,
Is there something like predict (..., type= 'response') for glmmPQL objects
or how would I get fitted values on the scale of the response variable for
the binomial and the poisson family?
Any pointers are appreciated.
Thanks, Lorenz
-
Lorenz Gygax, Dr. sc. nat.
Tel: +41 (0)52 368 33 84 / lorenz.gygax at fat.admin.ch
Tag der offenen T??r, 11./12. Juni 2004:
2003 Sep 02
1
Hangup on save.image () / q ()
Dear all,
I am doing some data handling and tabualtions and then I am using glmmPQL to
fit a binomial hierarchical model (which I assign to a new object). If I do
a save.image () or a q ('yes') after this, I get the following warning
messages:
Warning messages:
1: namespaces may not be available when loading
2: names in persistent strings are currently ignored
Sometimes R seems to
2004 May 24
1
bug in cor (..., use= ...)?
Dear R users,
I have not found anything on this in the archives. Does anyone know whehther
the parameter use= is not functioning in cor or enlighten me what it is
supposed to do?
My R version is "R version 1.8.1, 2003-11-21" on Windows 2000. I am hoping
to be able to update to 1.9.1 as soon as it has appeared (we are not allowed
here to install software on our own and thus I am trying
2007 Aug 22
4
within-subject factors in lme
I don't think, this has been answered:
> I'm trying to run a 3-way within-subject anova in lme with 3
> fixed factors (Trust, Sex, and Freq), but get stuck with handling
> the random effects. As I want to include all the possible random
> effects in the model, it would be something more or less
> equivalent to using aov
>
> > fit.aov <- aov(Beta ~
>
2010 Apr 24
0
Assumptions on Non-Standard F ratios
Hello there,
I am trying to run an ANOVA model using a non-Standard F ratio. Imagine that
the treatments (treatments 1 & 2) are applied to the row not to individual
samples. Thus the row is the experimental unit. Therefore my error term in
my ANOVA table should be the error associated with with row.
The question is how do I check the assumptions of an ANOVA model when I have
a non-standard F
2007 Jan 08
2
Contrasts for ordered factors
Dear all,
I do not seem to grasp how contrasts are set for ordered factors. Perhaps someone can elighten me?
When I work with ordered factors, I would often like to be able to reduce the used polynomial to a simpler one (where possible). Thus, I would like to explicetly code the polynomial but ideally, the intial model (thus, the full polynomial) would be identical to one with an ordered factor.
2005 Oct 19
1
anova with models from glmmPQL
Hi !
I try to compare some models obtained from glmmPQL.
model1 <-
glmmPQL(y~red*yellow+I(red^2)+I(yellow^2)+densite8+I(densite8^2)+freq8_4
+I(freq8_4^2), random=~1|num, binomial);
model2 <-
glmmPQL(y~red*yellow+I(red^2)+I(yellow^2)+densite8+I(densite8^2)+freq8_4
, random=~1|num, binomial);
anova(model1, model2)
here is the answer :
Erreur dans anova.lme(model1, model2) : Objects must
2003 May 22
1
Experimental Design
I don't know if this is the best place to post this question but I will
try anyway. I have two experiements for which I use one-way
matched-randomized ANOVA for the analysis and I would like to compare
different treatments in the two experiments. The only common group in
the two experiments are the controls. Is there any ANOVA design that
allows me to make this comparison taking into
2012 Jan 12
0
multcomp two-way anova with interactions within and between
Hi all,
I'd like to compare all levels of my interaction with each other. I read
the pdf 'Additional multcomp Examples' but even though there is an
example with an interaction it doesn't work for me when I want to
compare within and between groups.
Here is an example:
####
d.fr<-data.frame(id=rep(1:16,3),treat1=rep(as.factor(LETTERS[1:3]),each=
2007 Nov 12
0
Resid() and estimable() functions with lmer
Hi all,
Two questions:
1. Is there a way to evaluate models from lmer() with a poisson
distribution? I get the following error message:
library(lme4)
lmer(tot.fruit~infl.treat+def.treat+(1|initial.size),family=poisson)->model
plot(fitted(model),resid(model))
Error: 'resid' is not implemented yet
Are there any other options?
2. Why doesn't the function estimable() in gmodels
2011 Mar 02
1
how to delete empty levels from lattice xyplot
Hello All,
I try to use the attached code to produce a cross over plot. There are 13
subjects, 7 of them in for/sal group, and 6 of them in sal/for group. But in
xyplot, all the subjects are listed in both subgraphs. Could anyone help me
figure out how to get rid of the empty levels?
Thanks
library(lattice)
pef1 <- c(310,310,370,410,250,380,330,370,310,380,290,260,90)
pef2 <-
2004 Jan 27
2
Probability for ANOVA
Hi all!
I have 4 treatments on 5 animals
Treat1 Treat2 Treat3 Treat4
Animal1 36 37 35 39
Animal2 33 34 36 37
Animal3 37 35 33 38
Animal4 34 36 34 35
Animal5 35 36 33 36
I use an Anova and i try to verify calcul
So i retrieve:
DF SS
2005 Oct 10
1
interpretation output glmmPQL
Hi !
We study the effect of several variables on fruit set for 44 individuals
(plants). For each individual, we have the number of fruits, the number
of flowers and a value for each variable.
Here is our first model in R :
y <- cbind(indnbfruits,indnbflowers);
model1
<-glm(y~red*yellow+I(red^2)+I(yellow^2)+densite8+I(densite8^2)+freq8_4+I
(freq8_4^2), quasibinomial);
- We have
2008 Feb 03
1
Effect size of comparison of two levels of a factor in multiple linear regression
Dear R users,
I have a linear model of the kind
outcome ~ treatment + covariate
where 'treatment' is a factor with three levels ("0", "1", and "2"),
and the covariate is continuous. Treatments "1" and "2" both have
regression coefficients significantly different from 0 when using
treatment contrasts with treatment "0" as the
2011 Aug 09
1
simple plot question
Hi,
please excuse the most likely very trivial question, but I'm having no idea
where to find related information:
I try to recapitulate very simple plotting behavior of Excel within R but
have no clue how to get where I want.
I have tab delimited data like
cell treatment value
line a treat1 4
line a treat2 3
line b treat1 8
line b treat2 11
I'd like to have a plot (barplot), that
2006 May 09
2
post hoc comparison in repeated measure
Hi, I have a simple dataset with repeated measures.
one factor is treatment with 3 levels (treatment1,
treatment2 and control), the other factor is time (15
time points). Each treatment group has 10 subjects
with each followed up at each time points, the
response variable is numeric, serum protein amount. So
the between subject factor is treatment, and the
within subject factor is time. I ran a
2007 Aug 07
2
GLMM: MEEM error due to dichotomous variables
I am trying to run a GLMM on some binomial data. My fixed factors include 2
dichotomous variables, day, and distance. When I run the model:
modelA<-glmmPQL(Leaving~Trial*Day*Dist,random=~1|Indiv,family="binomial")
I get the error:
iteration 1
Error in MEEM(object, conLin, control$niterEM) :
Singularity in backsolve at level 0, block 1
>From looking at previous help
1998 Jul 16
1
R-beta: which Linux - again
Dear all,
I think this question has been raised very recently but I think I didn't
see repsonses on the list nor did I find the thread in the archives. (If
it is there I'd appreciate directions ...)
I am about to install Linux on a Compaq notebook. One important thing I
want to do is being able to run R. I have fiddled with different
distributions of Linux (LST, SuSE, Debian) and can
2011 Feb 17
1
3 questions about the poisson regression of contingency table
Hi all:
I have 3 questions about the poisson regression of contingency table.
Q1¡¢How to understand the "independent poisson process"as many books or paper
mentioned?
For instance:
Table1
-------------------------------------------
treat caner non-cancer sum
-------------------------------------------
treat1 52(57.18) 19(13.82) 71
treat2