Displaying 20 results from an estimated 300 matches similar to: "lme: anova vs. intervals"
2002 Jun 19
2
split plot design with missing plots
Windows 2000 . 5.00.2195 with Service Pack 1.
R 1.5.1
Output from my split-split plot aov "alerted" me that I have done something
wrong. I designed an experiment with all combinations of all levels of each
treatment, but lost a little data (3 out of 192 plots). With the following
data, I run the following model:
> collim[c(1:6,187:192),c(1,3:6,9)]
plot Litter Fert
2003 Apr 29
1
plot with nlme
Using R v. 1.7.0 on Windows 2000
I would like to plot the fitted values of a model as a function of a
continuous covariate, augmented with data (e.g., augPred) grouping by
combinations of fixed effects. I have not been able to use augPred
effectively, and am wondering if it does not handle unbalanced data (3 out
of 192 missing).
I include below the model and an xyplot that almost does the
2011 Aug 06
1
How set lm() to don't return NA in summary()?
Hi,
I've data from an incomplete fatorial design. One level of a factor doesn't
has the levels of the other. When I use lm(), the summary() return NA for
that non estimable parameters. Ok, I understant it. But I use
contrast::contrast(), gmodels::estimable(), multcomp::glht() and all these
fail when model has NA estimates. This is becouse vcov() and coef() has
different dimensions. Is
2013 Sep 19
2
(no subject)
Dear R sages,
I used the function rbind to combine a matrix (M) and a vector (Fert) to
get a new matrix (A). This was fine.
The issue is however, that the new matrix A has as its row names the name
of the vector Fert, even though I set teh new vector A to have
dimnames=NULL. See short code below fyi.
*Fert<-c(0,1,5)
*
*M <- matrix(0, 2, 3)
diag(M) <- c(0.3,0.5)
*
*A<-
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
nlme starting values are not the correct length
Dear R community,
I am trying to fit an nlme model where I want to estimate the fixed effects of two treatments on the parameters on the following equation Photo~(a*(1-exp(-c*PARi/a)))-b
I was able to fit a simple model without covariates following the method described in Mixed-Effects Methods and Classes for S and S-PLUS, version 3.0, but when I add the covariates, I get the error "
2004 Feb 17
3
parse error in GLMM function
Hi R-Helpers:
I?m trying to use the function GLMM from lme4 package, (R-1.8.1, Windows
98),and I get the following error:
> pd5 = GLMM(nplant~sitio+
+ fert+
+ remo+
+ sitio:fert+
+ remo:sitio+
+ remo:fert+
+ remo:fert:sitio
+ data=datos,
+ family=binomial,
+
2012 Jul 05
2
7 days confusion over lists
Hello,
I am a Masters student and I am working on my thesis modelling smallholder
farms using a program in R. I have modified the original code and I am
having some issues with lists that I cannot figure out.
Originally, I had list file defining lists such as: Param, Crop1, Crop1,
Soil, etc. (ex. Param <- list() ). Their subsets were listed as
Crop1$CContent for example and there was quite
2006 Feb 24
1
read table problem
Hi
I have a file saved in R, named agrexp.Rdata, shown below
> agrdata
fert yield
1 25 84
2 50 80
3 75 90
4 100 154
5 125 148
If I double clicked on this file, the data is displayed without problem.
However if I tried to import using:
> agrdata<-read.table("agrexp.Rdata") or
>
2008 May 26
0
use aov or lme for split plot design?
Dear all
I'm not sure if I did the right analysis for my specific split splot
design. We are
studying biomass increase with different CO2 concentrations with four
different
functional plant groups (e.g. grasses, herbs, broad-leafed trees and
conifers). Of each
functional plant group we have four species. The design is orthogonal.
The design is:
Blocks: 2 (climate chambers, called
2002 Jun 08
3
contour plot for non-linear models
Hello all,
I've tried to reproduce the contour plot that appears in the book of
Venables and Ripley, at page 255. Is a F-statistic surface and a
confidence region for the regression parameters of a non-linear model.
It uses the stormer data that are in the MASS package.
I haven't been able to reproduce the plot either in R ( version 1.5 )
and S. It makes the axes and it puts the
2004 Jun 01
2
GLMM(..., family=binomial(link="cloglog"))?
I'm having trouble using binomial(link="cloglog") with GLMM in
lme4, Version: 0.5-2, Date: 2004/03/11. The example in the Help file
works fine, even simplified as follows:
fm0 <- GLMM(immun~1, data=guImmun, family=binomial, random=~1|comm)
However, for another application, I need binomial(link="cloglog"),
and this generates an error for me:
>
2004 Dec 31
4
R-intro
Hello!
I was reading R-intro and I have some suggestions:
R-intro.html#A-sample-session
rm(fm, fm1, lrf, x, dummy)
suggestion
rm(fm, fm1, lrf, x, y, w, dummy)
The next section will look at data from the classical experiment of Michaelson and Morley to measure the speed of light.
file.show("morley.tab")
mm <- read.table("morley.tab")
suggestion
mm <- data(morley)
2006 Sep 25
0
F values for glm with binomial distribution
Hi Rneters,
I'm running a GLM model with a full factorial design in blocks and binomial
error distribution. I would like to have the F values for this model but I
got a message that "using F test with a binomial family is inappropriate in:
anova.glm(model, test = "F")". Should I not report F statistics on this kind
of analysis? I would appreciate any comment on this.
2010 Dec 06
0
Help with plit plot design in logit model
Hi,
I'm trying to fit a logit model to a set of data that was collected under a split plot scheme. The structure of the data is
Whole plot factors: Watering Frequency (2 levels: Hi/Lo) and Fertilizer type (3 factors A/B/C)
Subplot factor: slope type (2 factors up/down)
Response: Proportion of infected leaves(Infected leaves/Total leaves) of the plant (2 plants recorded from each plot)
2010 Dec 06
1
waldtest and nested models - poolability (parameter stability)
Dear All,
I'm trying to use waldtest to test poolability (parameter stability) between
two logistic regressions. Because I need to use robust standard errors
(using sandwich), I cannot use anova. anova has no problems running the
test, but waldtest does, indipendently of specifying vcov or not. waldtest
does not appear to see that my models are nested. H0 in my case is the the
vector of
2013 Jun 07
1
Function nlme::lme in Ubuntu (but not Win or OS X): "Non-positive definite approximate variance-covariance"
Dear all,
I am estimating a mixed-model in Ubuntu Raring (13.04ΒΈ amd64), with the
code:
fm0 <- lme(rt ~ run + group * stim * cond,
random=list(
subj=pdSymm(~ 1 + run),
subj=pdSymm(~ 0 + stim)),
data=mydat1)
When I check the approximate variance-covariance matrix, I get:
> fm0$apVar
[1] "Non-positive definite
2006 Dec 04
1
stepAIC for lmer
Dear All,
I am trying to use stepAIC for an lmer object but it doesn't work. Here is an example:
x1 <- gl(4,100)
x2 <- gl(2,200)
time <- rep(1:4,100)
ID <- rep(1:100, each=4)
Y <- runif(400) <=.5
levels(Y) <- c(1,0)
dfr <- as.data.frame(cbind(ID,Y,time,x1,x2))
fm0.lmer <- lmer(Y ~ time+x1+x2 + (1|ID), data = dfr, family = binomial)
2012 Jan 17
1
MuMIn package, problem using model selection table from manually created list of models
The subject says it all really.
Question 1.
Here is some code created to illustrate my problem, can anyone spot where I'm going wrong?
Question 2.
The reason I'm following a manual specification of models relates to the fact that in reality I am using mgcv::gam, and I'm not aware that dredge is able to separate individual smooth terms out of say s(a,b). Hence an additional request,
2010 Jun 03
2
lmer() with no intercept
Hi, I am wondering how I can specify no intercept in a mixed model using lmer().
Here is an example dataset attached ("test.txt"). There are 3 workers, in 5 days, measured a response variable "y" on independent variable "x". I want to use a quadratic term (x2 in the dataset) to model the relationship between y and x.