Displaying 20 results from an estimated 200 matches similar to: "glht function in multcomp gives unexpected p=1 for all comparisons"
2010 May 30
1
How to use the function "glht" of multcomp package to test interaction?
It's been a few weeks I'm racking my brains on how to use the function glht
the package multcomp to test interactions. Unfortunately, the creator of the
package forgot to put a sample in pdf package how to do it. I have looked in
several places, but found nothing. If someone for the love of God can help
me I'll be extremely grateful. The model is glm.
--
View this message in context:
2007 Jun 04
0
Error: could not find function "glht" (multcomp)
Dear List,
Could you tell why I get the error message?
> library(multcomp)
> data("cholesterol")
> m = aov(response ~ trt, data = cholesterol)
> cht <- glht(m, linfct = mcp(trt = "Tukey"))
Error: could not find function "glht"
Thank you
G?bor
2011 Sep 05
0
glht (multcomp): NA's for confidence intervals using univariate_calpha (fwd)
fixed @ R-forge. New version should appear on CRAN soon.
Thanks for the report!
Torsten
>
> ---------- Forwarded message ----------
> Date: Sat, 3 Sep 2011 23:56:35 +0200
> From: Ulrich Halekoh <Ulrich.Halekoh at agrsci.dk>
> To: "r-help at r-project.org" <r-help at r-project.org>
> Subject: [R] glht (multcomp): NA's for confidence intervals using
2011 Feb 08
0
glht{multcomp} : use with lme {nlme}
Hi dears,
I do
> CHOL<-lme(chol~rt*cd4+sex+age+rf+nadir+pharmac+factor(hcv)+factor(hbs)+
haartd+hivdur+factor(arv),
random= ~rt|id, na.action=na.omit)
...runs sweet,..then
....try a multicomparisons approach for the categorical rf
> summary(glht(CHOL, linfct=mcp(rf="Tukey")))
*
Error in model.frame.default(object, data, xlev = xlev) :
l'oggetto non รจ una matrice
2009 Oct 27
0
syntax for estimable(gmodels package) and glht(multcomp package)
Hello,
I have a question as to how the syntax for glht(package multcomp) and
estimable (gmodels) works, since I'm not getting everything from the
documents I've googled so far, especially with models with 2nd order
terms.
A modestly complex model:
2-way anova with one continuous covariate, no random effects(and no
repeated measures) to keep it modestly complex:
Y = treatmentgroup + sex
2011 Sep 03
0
glht (multcomp): NA's for confidence intervals using univariate_calpha
Hej,
Calculation of confidence intervals for means
based on a model fitted with lmer
using the package multcomp
- yields results for calpha=adjusted_calpha
- NA's for calpha=univariate_calpha
Example:
library(lme4)
library(multcomp)
### Generate data
set.seed(8)
d<-expand.grid(treat=1:2,block=1:3)
e<-rnorm(3)
names(e)<-1:3
d$y<-rnorm(nrow(d)) + e[d$block]
2012 Jan 13
1
GLHT in multcomp: Two similar models, one doesn't work
i ran this model
> model2<-glm(rojos~ageandsex+sector+season+sector:season,quasipoisson)
> glht(model2,linfct=mcp(ageandsex="Tukey"))
General Linear Hypotheses
Multiple Comparisons of Means: Tukey Contrasts
Linear Hypotheses:
Estimate
M - H == 0 0.2898
SUB - H == 0 -0.2261
SUB - M == 0 -0.5159
I tried to do the same changing factor season
2012 Nov 05
0
Diference in results from doBy::popMeans, multcomp::glht and contrast::contrast for a lme model
Hello R users,
I'm analyzing an experiment in a balanced incomplet block design (BIB). The
effect of blocks are assumed to be random, so I'm using nlme::lme for this.
I'm analysing another more complex experiments and I notice some diferences
from doBy::popMeans() compared multcomp::glht() and contrast::contrast().
In my example, glht() and contrast() were equal I suspect popMeans()
2012 Jul 07
0
Questions about glht() and interpretation of output from Tukey's in multcomp
Hi,
I have a few questions about glht() and the interpretation of output from
Tukey's in multcomp package for lme() model.
The main issue is that I noticed that a plot that I produced with code
letters seem to contradict the graph itself. I provide data and code
below. I end with my questions.
A few things about data set. "LMA.vcp" is continuous response variable.
2011 Aug 06
1
multcomp::glht() doesn't work for an incomplete factorial using aov()?
Hi R users,
I sent a message yesterday about NA in model estimates (
http://r.789695.n4.nabble.com/How-set-lm-to-don-t-return-NA-in-summary-td3722587.html).
If I use aov() instead of lm() I get no NA in model estimates and I use
gmodels::estimable() without problems. Ok!
Now I'm performing a lot of contrasts and I need correcting for
multiplicity. So, I can use multcomp::glht() for this.
2012 Dec 05
1
Using multcomp::glht() with Anova object
Hello everyone,
I've conducted a Type III repeated-measures ANOVA using Anova() from the
car package, based on the suggestions at
http://blog.gribblelab.org/2009/03/09/repeated-measures-anova-using-r/(option
3) and
http://languagescience.umd.edu/wiki/EEG#ERP_ANOVA_in_R. My ANOVA has two
factors: Condition (3 levels) and Region (6 levels) and their interaction.
Below is code to run the Anova
2010 Sep 14
4
Problems with "pdf" device using "plot" "glht" function on "multcomp" library.
Hi R users:
I have de following data frame (called "Sx")
Descripcion Nitratos
Cont85g 72.40
Cont85g 100.50
Cont85g 138.30
Cont80g 178.33
Cont80g 79.01
Cont80g 74.16
Cont75g 23.70
Cont75g 15.80
Cont75g 16.20
Patron80g
2012 Jan 12
0
glht (multicomparisons) with an interaction factor
Hi,
i was working with this model
> mq<-glm(rojos~edadysexo*zona*estacion,quasipoisson)
and i get this minimal adequate model
> anova(mq5,test="F")
Df Deviance Resid. Df Resid. Dev F Pr(>F)
NULL 518 64799
edadysexo 2 1556.5 516 63243 8.9434 0.0001524 ***
zona 4
2012 Feb 13
0
pairwise comparisons with multcomp package
Hi,
I've got this model and following Hothorn et al advices, I used glht for a
post hoc comparison
> modezqM<-glm(rojos~estacion*zona3,quasipoisson,subset=(edadysexo=="M"))
> anova(modezqM,test="F")
Df Deviance Resid. Df Resid.
Dev F Pr(>F)
NULL 293 41148
1997 Sep 08
0
No subject
After upgrading to 1.9.17p1 (Solaris 2.5.1) I am getting
continuous errors like the following. I have numerous
samba servers, one of which is configured as a wins server,
2 winNT servers (primary and backup, but not running as
wins servers). These messages are constant, even on this
Sunday night with virtually no network activity.
Sep 7 23:09:15 deltoid nmbd[8169]: reply_netbios_packet:
2007 Feb 09
1
Help in using multcomp.
Hi All,
I am trying use 'multcomp' for multiple comparisons
after my ANOVA analysis. I have used the following
code to do ANOVA:
dat <- matrix(rnorm(45), nrow=5, ncol=9)
f <- gl(3,3,9, label=c("C", "Tl", "T2"))
aof <- function(x) {
m <- data.frame(f, x);
aov(x ~ f, m)
}
amod <- apply(dat,1,aof)
Now, how can I use
2003 May 08
0
multcomp and lme (followup)
I just realized that in the call to `csimint' the argument `asympt=TRUE'
is missing since we need to compute the confidence intervals for a glm
based on the normal approximation.
Torsten
---------------------------------------------------------------------
library(multcomp)
set.seed(290875)
# a factor at three levels
group <- factor(c(rep(1,10), rep(2, 10), rep(3,10)))
# Williams
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 Mar 18
1
multcomp
I used the multcomp package sometime back for doing multiple
comparisons. I see that it has been updated and the methods like simint
are no longer supported. When I run the program it prompts to me to use
glht. How do I get the lower and upper conf int and the pValues using
glht? Does anyone have an example?
Thanks ../Murli
[[alternative HTML version deleted]]
2004 Jan 18
1
multcomp, simint, simtest and computation duration
Dear R-listers,
I am trying to compute simultaneous confidence intervals with simint from the package multcomp. 230 measures (abundance) have been taken in 23 sites (factor) of a data.frame (donnees: a file can be sent on request, saved with save(donnees,file="donnees")). I would like to get all pairwise comparisons with :
mc<- simint(ren~ID,type="Tukey",data=donnees)
I