similar to: is aov equivalent to lme for split-plot analysis?

Displaying 20 results from an estimated 2000 matches similar to: "is aov equivalent to lme for split-plot analysis?"

2010 Jan 09
0
aov vs lme for split plot analysis
Dear R community, I am trying to do a split-plot analysis as follows. I have a data set (?morf?) with plant data from 6 ?blocks? at different latitudes, each divided in 3 plots. The full-plot ?treatment? is ?soil type? and has three levels. Within each plot I have two levels of radiation, coded as ?SUN? and ?SHADE?. I have data for several response traits for 30 plants within each subplot,
2017 Oct 10
1
Unbalanced data in split-plot analysis with aov()
Dear all, I'm analysing a split-plot experiment, where there are sometimes one or two values missing. I realized that if the data is slightly unbalanced, the effect of the subplot-treatment will also appear and be tested against the mainplot-error term. I replicated this with the Oats dataset from Yates (1935), contained in the nlme package, where Variety is on mainplot, and nitro on
2004 Jul 27
1
re: help with lattice plot
Dear List, I have been using R to create an xyplot using the panel function within lattice libraries. This plot is based on the data supplied in R named 'Oats'. The graph represents oat yield by nitro level with an overlay of each variety of oats for each nitro level. I have three questions regarding this graph: 1) I cannot seem to specify the type of symbol used by the plot, even though
2009 Oct 10
1
lattice auto.key drop unused levels
The following code produces a legend ("key") that mentions the unused levels of Block. library(MEMSS) xyplot(yield~nitro, subset=(Block=="I" | Block=="II"), data=Oats, group=Block, auto.key=T) and adding "drop.unused.levels=T" does not fix it. And in fact even the following does not solve the problem: xyplot(yield~nitro,
2009 Oct 30
1
How to properly shade the background panels of an xyplot?
Dear R users, this is a follow up of this message http://tolstoy.newcastle.edu.au/R/e6/help/09/05/13897.html I'm reproducing the core of it for convenience. > // > / data(Oats, package = "MEMSS") / > / tp1.oats <- xyplot(yield ~ nitro | Variety + Block, / > / data = Oats, / > / panel = function(x, y, subscripts, ...) { /
2009 Oct 12
3
xyplot does not find variable in data
When we call a lattice function such as xyplot, to what extent does the "data" designation cause the function to look inside the "data" for variables? In the examples below, the "subset" argument understands that "Variety" is a variable in the data. But the "scales" argument does not understand that "nitro" is a variable in the data.
2010 Jan 19
1
A model-building strategy in mixed-effects modelling
Dear all, Consider a completely randomized block design (let's use data(Oats) irrespoctive of the split-plot design it was arranged in). Look: library(nlme) fit <- lme(yield ~ nitro, Oats, random = ~1|Block, method="ML") fit2 <- lm(yield ~ nitro + Block, Oats) anova(fit, fit2) gives this: Model df AIC BIC logLik Test L.Ratio p-value fit 1 4 624.3245
2006 Oct 09
1
split-plot analysis with lme()
Dear R-help, Why can't lme cope with an incomplete whole plot when analysing a split-plot experiment? For example: R : Copyright 2006, The R Foundation for Statistical Computing Version 2.3.1 (2006-06-01) > library(nlme) > attach(Oats) > nitro <- ordered(nitro) > fit <- lme(yield ~ Variety*nitro, random=~1|Block/Variety) > anova(fit) numDF denDF F-value
2007 Jun 28
2
aov and lme differ with interaction in oats example of MASS?
Dear R-Community! The example "oats" in MASS (2nd edition, 10.3, p.309) is calculated for aov and lme without interaction term and the results are the same. But I have problems to reproduce the example aov with interaction in MASS (10.2, p.301) with lme. Here the script: library(MASS) library(nlme) options(contrasts = c("contr.treatment", "contr.poly")) # aov: Y ~
2007 Apr 23
0
R: extract from a data frame
Oats[Oats$Variety %in% c("Victory", "Golden Rain"),] or subset(Oats, Variety %in% c("Victory", "Golden Rain")) Stefano -----Messaggio originale----- Da: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch]Per conto di elyakhlifi mustapha Inviato: luned? 23 aprile 2007 9.56 A: R-help at stat.math.ethz.ch Oggetto: [R] extract from
2006 Sep 23
1
variance-covariance structure of random effects in lme
Dear R users, I have a question about the patterned variance-covariance structure for the random effects in linear mixed effect model. I am reading section 4.2.2 of "Mixed-Effects Models in S and S-Plus" by Jose Pinheiro and Douglas Bates. There is an example of defining a compound symmetry variance-covariance structure for the random effects in a split-plot experiment on varieties of
2004 Sep 24
0
Function sort.data.frame
I can never remember how to use "order" to sort the rows of a data frame, so like any good, lazy programmer, I decided to write my own function. The idea is to specify a data.frame and a one-sided formula with +/- indicating ascending/descending. For example: sort.data.frame(~ +nitro -Variety, Oats) Since sorting of a data.frame is an oft-asked question on this list, I am posting
2007 Apr 23
1
extract from a data frame
hello, I'd like know how to do to extract data from a frame for example how can I do to extract only the data where variety=victory or variety=golden rain thanks. > Oats Block Variety nitro yield 1 I Victory 0.0 111 2 I Victory 0.2 130 3 I Victory 0.4 157 4 I Victory 0.6 174 5 I Golden Rain 0.0 117 6 I Golden Rain
2009 Oct 13
2
General means of matching a color specification to an official R color name
Hello List Dwellers: I?ve looked around quite a bit, but don?t quite see an answer that I understand. I?m looking for a way to take any kind of color specification (rgb, hsv, hcl, hex) and match it to the n-nearest R official color names. Clearly it is easy to interconvert different specification schemes and color spaces, but matching to the name seems a bit trickier. Seems like if one has a
2004 Apr 23
1
Weirdness with choose.files on Microsoft Windows (PR#6818)
Full_Name: Kevin Wright Version: 1.8.0 OS: Windows 95 Submission from: (NULL) (170.54.59.160) This bug also happens to me using R 1.9.0 on Windows 2000. Took me a long time to create a reproducible bug, but I think I have succeeded. I suspect my test function has a bug, but I don't see anything wrong. Plus, the bug only shows up when selecting certain filenames. Nearest I can speculate,
2000 Mar 29
1
A "stack" function
I am using R in my undergraduate engineering statistics courses, in which I am currently discussing one-way analysis of variance. Many of the data sets for the exercises or examples give the data in the form on one column per treatment level. To use the aov or lm functions such data should be converted to one column with all the response observations and a companion column with indicators of the
2010 Aug 06
0
Tukey post hoc test for testing interaction between two or more predictors
Hi everyone, I woudl like to apply a Tukey post hoc after a repeated measure ANOVA. I followed the suggestions that I found in this help -list especially this one: /[R] Tukey HSD (or other post hoc tests) following repeated measures ANOVA You want to use lme() in package nlme, then glht() in the multcomp package. This will give you multiplicity adjusted p-values and confidence intervals.
2010 Aug 09
0
Tukey post hoc test and two way repeated measures ANOVA
Dear all, I have a serious problem in applying Tukey post hoc after a repeated measure ANOVA. I followed the suggestions that I found in this help -list especially this one: //[R] Tukey HSD (or other post hoc tests) following repeated measures ANOVA You want to use lme() in package nlme, then glht() in the multcomp package. This will give you multiplicity adjusted p-values and confidence
2010 Nov 04
1
Plotting a vector data
Hi; I have 30 data sets and I managed to take the average of a variable in each set and put them in a vector like variable(It contains NaN data as well). x<- matrix( list.files("C:/updated_CFL_Rad_files/2007/11",full=TRUE)) for(i in 1:30) { radiation.data <-read.table(x[i], header = TRUE,sep = ",", quote = " ", dec = ".") attach(radiation.data)
2009 Apr 21
3
broken example: lme() + multcomp() Tukey on repeated measures design
I am trying to do Tukey HSD comparisons on a repeated measures expt. I found the following example on r-help and quoted approvingly elsewhere. It is broken. Can anyone please tell me how to get it to work? I am using R 2.4.1. > require(MASS) ## for oats data set > require(nlme) ## for lme() > require(multcomp) ## for multiple comparison stuff > Aov.mod <- aov(Y ~ N + V +