Displaying 20 results from an estimated 3000 matches similar to: "New member with question on multiple comparisons in mixed effects models"
2009 Sep 26
1
Multiple comparisons for coxph survival analysis model
Hello, all R-users!
I am working on fitting a survival analysis model using the coxph
function for Cox proportional hazards regression model. Data look like
usual:
==========================
group block death censor
Group1 1 4 1
Group1 1 12 1
...
Group2 30 4 1
Group2 30 4 1
...
Group3 57 16
2007 Aug 28
0
Problem with lme using glht for multiple comparisons
Hi everyone,
I am new to R and have a question that relates to unplanned post-hoc comparisons using the multcomp package after a mixed effects model. I couldn't find the answer to it in the archive or in any manual.
I have a dataset in which several plants have been treated in a particular way and a continuous response variable has been measured depending on several leaves per plant. I am
2009 Mar 22
1
Multiple Comparisons for (multicomp - glht) for glm negative binomial (glm.nb)
Hi
I have some experimental data where I have counts of the number of
insects collected to different trap types rotated through 5 different
location (variable -location), 4 different chemical attractants [A, B,
C, D] were applied to the traps (variable - semio) and all were
trialled at two different CO2 release rates [1, 2] (variable CO2) I also
have a selection of continuous variables
2010 May 17
1
Query on linear mixed model
Hi R Forum
I am a newbie to R and I have been amazed by what
I can get my team to accomplish just by
implementing Scripting routines of R in all my
team's areas of interest..
Recently i have been trying to adopt R scripting
routine for some analysis with longitudanal data..
I am presenting my R script below that I have
tried to make to automate data analysis for
longitudanal data by employing
2010 Mar 15
1
Multiple comparisons for a two-factor ANCOVA
I'm trying to do an ANCOVA with two factors (clipping treatment with two
levels, and plot with 4 levels) and a covariate (stem diameter). The
response variable is fruit number. The minimal adequate model looks like
this:
model3<-lm(fruit~clip + plot + st.dia + clip:plot)
I'd like to get some multiple comparisons like the ones from TukeyHSD, but
TukeyHSD doesn't work with the
2008 Jul 31
0
multiple comparison
Dear all,
I was trying to understand how "multcomp" package works by running the
examples given in the documentation.
However I still don't understand when it comes to multiple comparison set by
user (please refer to "Ksub" in the code). Therefore I run 2 other cases
along with the original example (case 1), with the expectation I'll get the
point from the output. The
2009 Jul 02
0
multiple comparisons and generalized least squares
Dear R users,
I 'm working on a dataset consisting of 4 different dataframes with
tree, leaf, fruit and seed measurements made on 300 trees, coming from
10 provenances (30 trees per provenance, 10 leaves/fruits/seeds per
tree). Provenances are fixed effects (they were not randomly chosen),
but trees within provenances and leaves/fruits/seeds within trees were
randomly assigned. I wanted to
2012 Jun 22
0
R: Error with glht function: Error in mcp2matrix(model, linfct = linfct) : Variable(s) 'Type' have been specified in 'linfct' but cannot be found in 'model'!
Hello everybody,
problem solved, there was a typo.
I wrote Type instead of Material
Best
----Messaggio originale----
Da: angelo.arcadi@virgilio.it
Data: 22-giu-2012 11.05
A: <r-help@r-project.org>
Ogg: Error with glht function: Error in mcp2matrix(model, linfct = linfct) : Variable(s) 'Type' have been specified in 'linfct' but cannot be found in 'model'!
2008 Jan 11
1
glht() and contrast() comparison
Hi, I have been trying glht() from multcomp package
and contrast() from contrast package to test a
contrast that I am interested in.
With the following simulated dataset (fixed effect
"type" with 3 levels (b, m, t), and random effect
"batch" of 4 levels, a randomized block design with
interaction), sometimes both glht() and contrast()
worked and gave nearly the same p values;
2011 Mar 01
1
glht() used with coxph()
Hi, I am experimenting with using glht() from multcomp package together with
coxph(), and glad to find that glht() can work on coph object, for example:
> (fit<-coxph(Surv(stop, status>0)~treatment,bladder1))
coxph(formula = Surv(stop, status > 0) ~ treatment, data = bladder1)
coef exp(coef) se(coef) z p
treatmentpyridoxine -0.063 0.939 0.161
2012 Jan 11
2
problems with glht for ancova
I've run an ancova, edadysexo is a factor with 3 levels,and log(lcc) is the
covariate (continous variable)
I get this results
> ancova<-aov(log(peso)~edadysexo*log(lcc))
> summary(ancova)
Df Sum Sq Mean Sq F value Pr(>F)
edadysexo 2 31.859 15.9294 803.9843 <2e-16 ***
log(lcc) 1 11.389 11.3887 574.8081 <2e-16 ***
2013 Jul 25
1
lme (weights) and glht
Dear R members,
I tried to fit an lme model and to use the glht function of multcomp.
However, the glht function gives me some errors when using
weights=varPower().
The glht error makes sense as glht needs factor levels and the model
works fine without weights=. Does anyone know a solution so I do not
have to change the lme model?
Thanks
Sibylle
--> works fine
2011 Mar 04
2
glht: Problem with symbolic contrast for factors with number-levels
Using a factor with 'number' levels the straightforward
symbolic formulation of a contrast in 'glht' of
the 'multcomp' package fails.
How can this problem be resolved without having to redefine the factor levels?
Example:
#A is a factor with 'number' levels
#B similar factor with 'letter' levels
dat<-data.frame(y=1:4,A=factor(c(1,1,2,2)),
2011 Apr 11
3
multiple comparisons with generalised least squares
Dear R users,
I have used the following model:
M1 <- gls(Nblad ~ Concentration+Season + Concentration:Season, data=DDD,
weights=varIdent(form=~ 1 | Season*Concentration))
to assess the effect of Concentration and Season on nitrogen uptake by
leaves (Nblad). I accounted for the difference in variance across the factor
levels by using the varIdent function.
Then I wanted to perform multiple
2011 Jul 18
1
Multiple comparison test on selected contrasts
Dear Help-list, How can I do a multiple comparison test (mct) on selected contrasts from a linear model while using packages lme4 and multcomp? I am running R 2.13.0 under Windows 7. The following linear model and mct produces a global mct of 15 paired contrasts of the combined (Site, Position) factor SitePos of which only 9 are of interest. Model.G = lmer(log10(SrCa) ~ SitePos + (1 | Eel),
2010 Jul 21
1
post hoc test for lme using glht ?
Hi,
I have a fairly simple repeated measures-type data set I've been attempting
to analyze using the lme function in the nlme package. Repeated searches
here and other places lead me to believe I have specified my model
correctly.
However, I am having trouble with post-hoc tests. From what I gather, other
people are successfully using the glht function from the multcomp package to
2012 Jun 22
0
Error with glht function: Error in mcp2matrix(model, linfct = linfct) : Variable(s) 'Type' have been specified in 'linfct' but cannot be found in 'model'!
Dear list members,
I get the following error when using the glht function to perform a post hoc analysis for an ANOVA with repeated measures:
require(nlme)
lme_H2H_musicians = lme(H2H ~ Emotion*Material, data=musicians, random = ~1|Subject)
require(multcomp)
summary(glht(lme_H2H_musicians, linfct=mcp(Type = "Tukey")), test = adjusted(type = "bonferroni"))
Error in
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
2012 Jan 02
1
Is using glht with "Tukey" for lme post-hoc comparisons an appropriate substitute to TukeyHSD?
Hello,
I am trying to determine the most appropriate way to run post-hoc
comparisons on my lme model. I had originally planned to use Tukey
HSD method as I am interested in all possible comparisons between my
treatment levels. TukeyHSD, however, does not work with lme. The
only other code that I was able to find, and which also seems to be
widely used, is glht specified with Tukey:
2010 Apr 15
0
lme posthoc comparisons in R
Hi there, I was hoping to post this message. Im hoping I;ve got the right spot?!
Hi there,
sorry for basic question but im very new to R. Im trying to run a lme model with two categorical variables, each having 6 (for the explanatory variable C.f) and 5 levels (for expl. variable D.f) respectively. The lme runs fine, summary and anova commands are ok. But now i've tried running posthoc