Displaying 20 results from an estimated 20000 matches similar to: "residual df in lmer and simulation results"
2012 Jun 12
1
Unbalanced Design Power Analysis
I have an unbalanced design I would like to run a power analysis on.
What I have been able to find has pointed me to using the pwr.f2.test
function as described below. My problem is that I don't know how to
appropriately define the numerator and demoninator df.
If someone can help here is some more info about my design.
It is an unbalanced 2^3 x 3 design where the factor with 3 levels is a
2005 Dec 26
4
lme X lmer results
Hi,
this is not a new doubt, but is a doubt that I cant find a good response.
Look this output:
> m.lme <- lme(Yvar~Xvar,random=~1|Plot1/Plot2/Plot3)
> anova(m.lme)
numDF denDF F-value p-value
(Intercept) 1 860 210.2457 <.0001
Xvar 1 2 1.2352 0.3821
> summary(m.lme)
Linear mixed-effects model fit by REML
Data: NULL
AIC BIC
2003 Oct 21
3
explaining curious result of aov
Hello. I have come across a curious result that I cannot explain.
Hopefully, someone can explain this. I am doing a 1-way ANOVA with 6
groups (example: summary(aov(y~A)) with A having 6 levels). I get an F
of 0.899 with 5 and 15 df (p=0.51). I then do the same analysis but
using data only corresponding to groups 5 and 6. This is, of course,
equivalent to a t-test. I now get an F of 142.3
2005 Jan 03
1
different DF in package nlme and lme4
Hi all
I tried to reproduce an example with lme and used the Orthodont
dataset.
library(nlme)
fm2a.1 <- lme(distance ~ age + Sex, data = Orthodont, random = ~ 1 | Subject)
anova(fm2a.1)
> numDF denDF F-value p-value
> (Intercept) 1 80 4123.156 <.0001
> age 1 80 114.838 <.0001
> Sex 1 25 9.292 0.0054
or alternatively
2006 Oct 06
2
lmer output
When I do lmer models I only get Estimate, Standard Error and t value in
the output for the fixed effects.
Is there a way I get degrees of freedom and p values as well?
I'm a very new to R, so sorry if this a stupid question.
Thank you
- Mike
Mike Ford
Centre for Speech and Language
Department of Experimental Psychology
Downing Street
Cambridge
CB2 3EB
Tel: +44 (0) 1223 766559
Fax: +44
2019 Jan 17
3
long-standing documentation bug in ?anova.lme
tl;dr anova.lme() claims to provide sums of squares, but it doesn't. And
some names are misspelled in ?lme. I can submit all this stuff as a bug
report if that's preferred.
?anova.lme says:
When only one fitted model object is present, a data frame with
the sums of squares, numerator degrees of freedom, denominator
degrees of freedom, F-values, and P-values
The output of
fm1
2006 Sep 07
5
Conservative "ANOVA tables" in lmer
Dear lmer-ers,
My thanks for all of you who are sharing your trials and tribulations
publicly.
I was hoping to elicit some feedback on my thoughts on denominator
degrees of freedom for F ratios in mixed models. These thoughts and
practices result from my reading of previous postings by Doug Bates
and others.
- I start by assuming that the appropriate denominator degrees lies
between n
2006 Dec 15
1
DF for GAM function (mgcv package)
For summary(GAM) in the mgcv package smooth the degrees of freedom for
the F value for test of smooth terms are the rank of covariance matrix
of \hat{beta} and the residuals df. I've noticed that in a lot of GAMs
I've fit the rank of the covariance turns out to be 9. In Simon Wood's
book, the rank of covariance matrix is usually either 9 or 99 (pages
239-230 and 259).
Can anyone
2006 Apr 20
2
Missing p-values using lmer()
Hello,
I’m trying to perform a REML analysis using the lmer() function (lme4
package). Well, it seems to work well, except that I’m not getting any
p-value (see example below). Can someone tell me what I did wrong?
Thanks for your help,
Amélie
> library(gdata)
> dive <- read.xls("C:/Documents and Settings/Amelie/My Documents/Postdoc/CE
2005-2006/divebydive.xls",
2003 May 20
2
regression coefficients
dear all, How can I compare regression coefficients across three (or more)
groups?
Thank you very much
2007 Jun 25
1
degrees of freedom in lme
Dear all,
I am starting to use the lme package (and plan to teach a course based on it
next semester...). To understand what lme is doing precisely, I used balanced
datasets described in Pinheiro and Bates and tried to compare the lme outputs
to that of aov. Here is what I obtained:
> data(Machines)
> summary(aov(score~Machine+Error(Worker/Machine),data=Machines))
Error: Worker
2008 Jan 07
1
testing fixed effects in lmer
Dear all,
I am performing a binomial glmm analysis using the lmer function in
the lme4 package (last release, just downloaded). I am using the
"Laplace method".
However, I am not sure about what I should do to test for the
significance of fixed effects in the binomial case: Is it correct to
test a full model against a model from which I remove the fixed
effect I want to test
2008 Feb 15
2
lmer in package of lme4
Dear Sir/madam,
I use lmer to extract model in your package of lme4. It seems works
well. But the problem is when I use anova/summary the extracted model,
no p-value is shown at all. In previous version(nlme), I mainly use
p-value to judge which term is significant or not, and then make a
decision to keep this term or not. Does it means that sth wrong with my
installation of package/R? or you use
2006 May 19
2
lmer, p-values and all that
Users are often surprised and alarmed that the summary of a linear
mixed model fit by lmer provides estimates of the fixed-effects
parameters, standard errors for these parameters and a t-ratio but no
p-values. Similarly the output from anova applied to a single lmer
model provides the sequential sums of squares for the terms in the
fixed-effects specification and the corresponding numerator
2012 Jul 27
1
lmer t value for 3 levels of fixed factor
Hello,
I just joined this list today, so am worried about proper protocol, but would like to post a question about lme4.
In Baayen, Davidson, and Bates (2008), Mixed-effects modeling with crossed random effects for subjects and items, the authors describe steps for a Latin Square Design (p. 402) in which they compare 3 levels of the experimental conditions. I am considering replicating this
2006 Apr 13
1
obtaining residuals from lmer
Hello. I cannot find out how to extract the residuals from a mixed model
using the lmer function. Can someone help?
Bill Shipley
North American Editor, Annals of Botany
Editor, "Population and Community Biology" series, Springer Publishing
Département de biologie, Université de Sherbrooke,
Sherbrooke (Québec) J1K 2R1 CANADA
Bill.Shipley@USherbrooke.ca
2003 Oct 21
2
Denominator Degrees of Freedom in lme() -- Adjusting and Understanding Them
Hello all.
I was wondering if there is any way to adjust the denominator degrees of
freedom in lme(). It seems to me that there is only one method that can be
used. As has been pointed out previously on the list, the denominator
degrees of freedom given by lme() do not match those given by SAS Proc
Mixed or HLM5. Proc Mixed, for example, offers five different options for
computing the
2009 Apr 05
4
extract the p value of F statistics from the lm class
Dear R users
I have run an regression and want to extract the p value of the F
statistics, but I can find a way to do that.
x<-summary(lm(log(RV2)~log(IV.m),data=b))
Call:
lm(formula = log(RV2) ~ log(IV.m), data = b[[11]])
Residuals:
Min 1Q Median 3Q Max
-0.26511 -0.09718 -0.01326 0.11095 0.29777
Coefficients:
Estimate Std. Error t value Pr(>|t|)
2006 Jul 08
1
denominator degrees of freedom and F-values in nlme
Hello,
I am struggling to understand how denominator degrees of freedom and
subsequent significance testing based upon them works in nlme models.
I have a data set of 736 measurements (weight), taken within 3
different age groups, on 497 individuals who fall into two
morphological catagories (horn types).
My model is: Y ~ weight + horn type / age group, random=~1|individual
I am modeling
2003 Jan 27
1
Greenhouse-Geisser correction
Hi all,
I was wondering whether there are any packages that provide for the
Greenhouse-Geisser correction, an adjustment used in univariate repeated
measures when the sphericity assumption is violated (both numerator and
denominator degrees of freedom are multiplied by GG-epsilon, and the
significance of the F ratio is evaluated with the new degrees of freedom)? I
have seen a few emails with