[R] linear mixed-effects models with two random variables?

2012-09-14 Thread barbara costa
Dear R users, Does anyone knows how to run a glmm with one fixed factor and 2 random numeric variables (indices)? Is there any way to force in the model a separate interaction of those random variables with the fixed one? I hope you can help me. #eg. Reserve <- rep(c("In","Out"), 100) fReserve <-

[R] how to perform multiple comparisons with anova.glm significant interactions?

2012-09-11 Thread barbara costa
=myData) plot (glmTest) anova (glmTest, test="F") # How could I hypothetically test multiple comparisons among the 3 predictors (when only one is a factor)? (or something that can help me to understrand what is happening with fish biomass in relation to reserve effect and habitat meas

[R] how to create a segplot in black and white?

2012-09-10 Thread barbara costa
Hi to all I hope you can help me. # I'm trying to plot the following ratio data with standard error bars (horizontal). ratioBiomass <- c(1.327, 0.865, 1.900, 0.992, 1.469, 1.381, 1.230,1.269, 2.411, 1.288, 1.861, 0.714, 1.341, 1.362, 1.065, 2.374) SEratio <- c(19.28, 5.04, 0.01, 0.01, 0.90,

[R] how to model check in cozigam

2012-04-02 Thread barbara costa
Hi to all, I'd like to check my cozigam model with a continuous response. If I only had a GAM I could do gam.check(b), but with cozigam I'm not getting a way to check for residuals, fitted values, qq plot.. Even if I have to do it separately for zeros and non-zeros part, how can I assure that the f

Re: [R] how to colour labels (each label with a colour) in a dendrogram?

2011-12-12 Thread barbara costa
gt; above suggestions, which I found with about 30 seconds of Googling. > > Sarah > > On Mon, Dec 12, 2011 at 5:10 AM, barbara costa > wrote: > > Hello to all, > > I still have this doubt. > > I'd like to colour the different labels of my dendrogram each one w

[R] how to colour labels (each label with a colour) in a dendrogram?

2011-12-12 Thread barbara costa
at? I'd appreciate your help. thanks a lot again. Barbara On 9 December 2011 13:44, barbara costa wrote: > I'm sorry. > > (dend1 <- as.dendrogram(hc)) > > On 9 December 2011 12:10, Sarah Goslee wrote: > >> Hi, >> >> On Fri, Dec 9, 2011 at 6:57

Re: [R] how to add an edgetext to a dendrogram?

2011-12-09 Thread barbara costa
I'm sorry. (dend1 <- as.dendrogram(hc)) On 9 December 2011 12:10, Sarah Goslee wrote: > Hi, > > On Fri, Dec 9, 2011 at 6:57 AM, barbara costa > wrote: > > Hello to all, > > I'd like to colour the different labels of my dendrogram. How can I do? I >

[R] how to add an edgetext to a dendrogram?

2011-12-09 Thread barbara costa
Hello to all, I'd like to colour the different labels of my dendrogram. How can I do? I guess I could to using *edgetext* and then* t.col* or *lab.col* but I don't know how to add edgetext to my dendrogram. Can you help me please? Example: require(graphics); require(utils) hc <- hclust(dist(USAr

[R] different colors in a segplot centers (package latticeExtra)

2011-04-17 Thread barbara costa
Hi, how can I change colors in the centers of my segplot? I'm not interested in coloring the lines (Standard error limits) but the centers (means)? here's my code: segplot(reorder(factor(Species), MeanBiom) ~ MinSEBiom + MaxSEBiom , data=dfRatioAftBefBiom, draw.bands = FALSE, centers = MeanBiom

Re: [R] error in bargraph.CI {sciplot}

2011-03-25 Thread barbara costa
11 00:25, David Winsemius wrote: > > On Mar 25, 2011, at 8:06 PM, barbara costa wrote: > > Hi again, >> I opened a new worskpace and if this function is done before I do other >> things it works! >> But to use my data I'll have a problem. >> > > It s

Re: [R] error in bargraph.CI {sciplot}

2011-03-25 Thread barbara costa
Hi again, I opened a new worskpace and if this function is done before I do other things it works! But to use my data I'll have a problem. Thanks anyway. Barbara On 25 March 2011 23:51, barbara costa wrote: > Here's my session info: > > > sessionInfo() > R v

Re: [R] error in bargraph.CI {sciplot}

2011-03-25 Thread barbara costa
s_2.12.2 On 25 March 2011 23:50, barbara costa wrote: > Well, > > I have the R version 12.2.2 > > I installed sciplot_1.0-7.zip > <http://cran.r-project.org/bin/windows/contrib/r-release/sciplot_1.0-7.zip> > for > windows. > > > > I have the Windows

Re: [R] error in bargraph.CI {sciplot}

2011-03-25 Thread barbara costa
y R console because I wanted to figure it out why my data was giving this error. It's really weird that it doesn't work just for me. Does anyone has the windows 7 and are having the same problem? Barbara On 25 March 2011 05:22, David Winsemius wrote: > > On Mar 24, 2011

[R] error in bargraph.CI {sciplot}

2011-03-24 Thread barbara costa
Hi to all, Does anybody knows why this is giving an error? data(ToothGrowth) # Two-way design with options bargraph.CI(dose, len, group = supp, data = ToothGrowth, xlab = "Dose", ylab = "Growth", cex.lab = 1.5, x.leg = 1, col = "black", angle = 45, cex.names = 1.25,

[R] predict lm doubt

2011-03-18 Thread barbara costa
Hello, does anyone knows this predict is not resulting? # lm predict dfTestes3sitesCriptic$Velocity_corrected <- ifelse (dfTestes3sitesCriptic$Season == "A" & dfTestes3sitesCriptic$BeforeAfter == "Before", (dfTestes3sitesCriptic$Velocity * mVel3ABefAfter), (ifelse (dfTestes3sitesCriptic$Season ==