Displaying 13 results from an estimated 13 matches similar to: "Anova"
2008 Oct 19
1
Date classes in ggplot2
updn.gg <- (structure(list(date = structure(c(11808, 11869, 11961, 11992,
12084, 12173, 12265, 12418, 12600, 12631, 12753, 12996, 13057,
13149), class = "Date"), unrestored = c(1.13789418691602, 0.704948049842955,
0.276777348238899, 0.417586861554189, 0.504870337754768, 0.673201771716216,
0.560704221510771, 0.835737007551542, 1.10773858390693, 0.197070828834836,
0.942350681588179,
2007 Jul 10
4
type III ANOVA for a nested linear model
Hello,
is it possible to obtain type III sums of squares for a nested model as
in the following:
lmod <- lm(resp ~ A * B + (C %in% A), mydata))
I have tried
library(car)
Anova(lmod, type="III")
but this gives me an error (and I also understand from the documentation
of Anova as well as from a previous request
(http://finzi.psych.upenn.edu/R/Rhelp02a/archive/64477.html) that it is
2017 Jul 06
2
attributes on symbols
The multcomp package has code in multcomp:::expression2coef that attaches
the 'coef' attribute to symbols. Since there is only one symbol object in
a session with a given name, this means that this attaching has a global
effect. Should this be quietly allowed or should there be a warning or an
error?
E.g.,
str(quote(Education))
# symbol Education
lmod <- stats::lm(Fertility ~ .,
2009 May 27
1
ggplot2 adding vertical line at a certain date
library(ggplot2)
melt.updn <- (structure(list(date = structure(c(11808, 11869, 11961, 11992,
12084, 12173, 12265, 12418, 12600, 12631, 12753, 12996, 13057,
13149, 11808, 11869, 11961, 11992, 12084, 12173, 12265, 12418,
12600, 12631, 12753, 12996, 13057, 13149), class = "Date"), variable =
structure(c(1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L,
2L, 2L, 2L, 2L,
2009 Jun 01
1
Minor tick marks for date/time ggplot2 (this is better, but not exactly what I want)
library(ggplot2)
melt.updn <- (structure(list(date = structure(c(11808, 11869, 11961, 11992,
12084, 12173, 12265, 12418, 12600, 12631, 12753, 12996, 13057,
13149, 11808, 11869, 11961, 11992, 12084, 12173, 12265, 12418,
12600, 12631, 12753, 12996, 13057, 13149), class = "Date"), site =
structure(c(1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L,
2L, 2L, 2L, 2L, 2L,
2017 Aug 11
1
attributes on symbols
Thanks for spotting this issue. The short answer is yes, adding
attributes to a symbol is a bad idea and will be turned into a runtime
error soon. Maintainers of packages that add attributes to symbols have
been notified and some have already fixed their code.
At least in one case the package is not working properly, even in
isolation, because of the global effect of adding an attribute to a
2013 Jun 28
3
problem with eval(..., parent.frame(1L)) when package is not loaded
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The lmer() function in the lme4 package has some code of the form
mc <- match.call()
mc[[1]] <- as.name("lFormula")
lmod <- eval(mc, parent.frame(1L))
this is a fairly common idiom in R, found e.g. in lm(), used when
one wants to pass all of the arguments of a function to a different
function (in the case of lm() it's
2009 May 29
0
ggplot2 date help (minor gridlines months and major grid lines years in a readable format)
library(ggplot2)
melt.updn <- (structure(list(date = structure(c(11808, 11869, 11961, 11992,
12084, 12173, 12265, 12418, 12600, 12631, 12753, 12996, 13057,
13149, 11808, 11869, 11961, 11992, 12084, 12173, 12265, 12418,
12600, 12631, 12753, 12996, 13057, 13149), class = "Date"), variable =
structure(c(1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L,
2L, 2L, 2L, 2L,
2008 Mar 14
0
Mixed Model nested ANOVA (lme help)
Hello Again R help readers - I have posted in the past and want to
thank all those who replied with helpful suggestions.
This regards mixed model anova, and the nlme package.
My purpose is to make a comparison of barnacle recruit density from 3
different regions. In each of these regions i have sampled 6 randomly
chosen sites. I sampled 20 quadrats at each site giving me a total
sample size of
2017 Jul 07
0
attributes on symbols
Here is a simpler example:
> ex <- as.name("a")
> attr(ex, "test") <- 1
> quote(a)
a
attr(,"test")
[1] 1
Torsten
On Thu, 6 Jul 2017, William Dunlap wrote:
> The multcomp package has code in multcomp:::expression2coef that attaches the 'coef' attribute to
> symbols.? Since there is only one symbol object in a session with a given name,
2013 Feb 19
0
calcMin
I tried to use calcMin with a function that uses a number of ...
arguments (all args from resid on) besides the vector of parameters
being fit. Same idea as optim, nlm, nlminb for which this form of ...
syntax works. But with calcMin I get an error regarding unused
arguments. No partial matches to previous arguments that I can see.
Anybody know the reason or fix for this?
2024 Jun 15
1
Hard crash of lme4 in R-devel
I ran across this by accident when working up an example. It uses a data set from the survival package, but nothing else from there. Fails on the Intel machine shown below, and on a virtual linux instance on a newer Mac.
Terry
> library(survival)
> library(lme4)
Loading required package: Matrix
> sessionInfo()
R Under development (unstable) (2024-06-14 r86747)
Platform:
2009 Jun 01
1
installing sn package
Hi r-users,
I want to use the sn package but I got the following message:
> install.packages(repos=NULL,pkgs="c:\\Tinn-R\\sn_0.4-12.zip")
Warning: package 'sn' is in use and will not be installed
updating HTML package descriptions
I did tried to do it a few times but it gives the same message.
________________________________
From: