Blog Archives

Multiple Comparisons for GLMMs using glmer() & glht()

June 14, 2011
By
Multiple Comparisons for GLMMs using glmer() & glht()

...that's an example of how to apply multiple comparisons to a generalised linear mixed model using the function glmer from package lme4 & glht() from package multcomp. By the way you see a nice example for visualizing data from a nested sampli...

Read more »

Drawing Grids in R

June 1, 2011
By
Drawing Grids in R

Here's an example of how to draw a grid in R and how to fill it.I did use the grid-package and its functions for displaying species cover values at squares of a recording frame...Read more »

Read more »

Legendre & Borcard: Nested ANOVA by Permutation

May 30, 2011
By
Legendre & Borcard: Nested ANOVA by Permutation

..here's a very illustrative R-Script example by Legendre & Borcard showing how a Nested ANOVA can be done by permutation.Read more »

Read more »

Summarize Data by Several Variables

May 23, 2011
By
Summarize Data by Several Variables

Here's an example how to conveniently summarize data with the cast function (package reshape). By the way you see how this could be done "in-conveniently" by hand. You also see how a for-loop works and how a matrix is constructed and fill...

Read more »

Bootstrap Confidence Intervals for Diversity Indices

April 30, 2011
By
Bootstrap Confidence Intervals for Diversity Indices

Here's the bootstrap refinement of the normal asymptotic interval (Mills and Zandvakili, 1997; Dixon et al., 1987; Efron and Tibshirani, 1997) - where Diversity (div, g) is the Simpson Index calculated from the observed sample, k is the number boot...

Read more »

Fit Sigmoid Curve with Confidence Intervals

April 28, 2011
By
Fit Sigmoid Curve with Confidence Intervals

Sigmoid curve fitting for transpiration measurements from porometer at different water potentials (pressure):Read more »

Read more »

Adonis (PERMANOVA) – Assumptions

April 26, 2011
By
Adonis (PERMANOVA) – Assumptions

Before you use PERMANOVA (R-vegan function adonis) you should read the user notes for the original program by the author (Marti J. Anderson) who first came up with this method. An important assumtption for PERMANOVA is same "multivariate spread&qu...

Read more »

Permutation Test with Stratified Data and Repeated Measurements

April 21, 2011
By
Permutation Test with Stratified Data and Repeated Measurements

This is an example for a permutation test on stratified samples with repeated measurements. Samples are interdependent firstly because they come from several sites and secondly because the sampling was repeated a second time. That is samples of the sam...

Read more »

Bootsrap Confidence Intervals, Stratified Bootstrap

April 20, 2011
By
Bootsrap Confidence Intervals, Stratified Bootstrap

 Here's a worked example for comparing group averages with bootstrap confidence intervals and allowing for different subsample sizes by calling the strata argument within the bootstrap function.The data is set up analogous to an before-after impac...

Read more »

Custom Labels for Ordination Diagram

April 20, 2011
By
Custom Labels for Ordination Diagram

Here is how you do custom labels, hull, spider in a vegan ordination diagram: Read more »

Read more »