[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
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 measurements at the same time). Many thanks in advance, Barbara Costa

[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

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

2011-12-12 Thread barbara costa
December 2011 13:44, barbara costa rbarbar...@gmail.com wrote: I'm sorry. (dend1 - as.dendrogram(hc)) On 9 December 2011 12:10, Sarah Goslee sarah.gos...@gmail.com wrote: Hi, On Fri, Dec 9, 2011 at 6:57 AM, barbara costa rbarbar...@gmail.com wrote: Hello to all, I'd like to colour

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

2011-12-12 Thread barbara costa
found with about 30 seconds of Googling. Sarah On Mon, Dec 12, 2011 at 5:10 AM, barbara costa rbarbar...@gmail.com wrote: Hello to all, I still have this doubt. I'd like to colour the different labels of my dendrogram each one with a different colour. How can I do? I guess I could do

[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 -

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 sarah.gos...@gmail.com wrote: Hi, On Fri, Dec 9, 2011 at 6:57 AM, barbara costa rbarbar...@gmail.com wrote: Hello to all, I'd like to colour the different labels of my dendrogram. How can I do? I guess I

[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 =

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

2011-03-25 Thread barbara costa
, barbara costa wrote: 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

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

2011-03-25 Thread barbara costa
On 25 March 2011 23:50, barbara costa rbarbar...@gmail.com 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 7 in a HP laptop. I didn't modify anything

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 rbarbar...@gmail.com wrote: Here's my session info: sessionInfo() R version 2.12.2

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

2011-03-25 Thread barbara costa
:25, David Winsemius dwinsem...@comcast.net 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 sounds like you have a collision of some sort

[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 == Sp