## Fitting scale-dependent landscape effect with greta

A large number of ecological processes depend not only on the local conditions but also on the surrounding landscape. Think of birds being measured at a numb...

Below you may find all posts I wrote, some were previously hosted at a wordpress blog so the layout of the code snippet might be weird. I will try to work down the posts and fix this.

Feel free to leave comments, also I am always happy to hear about posts ideas.

A large number of ecological processes depend not only on the local conditions but also on the surrounding landscape. Think of birds being measured at a numb...

Some themes keeps popping up in different projects or aspects of my work and I would like to reflect a bit on them in a series of posts.

Following some mail exchange with Yves Rosseel about the simulation work I have been doing on SEMs, finding out that we both live in the same city we organiz...

Back in May I published a first post which simulated simple Structural Equation Models (SEMs) to check the capacity of piecewieseSEM to deal with noise. At t...

The aim of this post is to see how to fit mixed effect models with varying effects when the explanatory variable that varies is a categorical variables. For ...

This is a quick post on a blatant example on how careful and prudent interpretation in scientific articles are over-simplified in news article.

A reader asked in a comment to my post on interpreting two-way interactions if I could also explain interaction between two categorical variables and one con...

Point pattern analysis is a set of techniques to analyze spatial point data. In ecology this type of analysis may arise in several context but make specific ...

This is a theme that bugged me for the past few months, through reading (Peters’ critique for ecology, Shipley’s path analysis book), meetings and discussion...

Sometime I happen to be wrong, this is one of these instance. The issue: a colleague measured individual plant growth and measured light irradiation received...

With my higher education studies behind me, I wanted to reflect a bit on the different amount of tuition fees that I experienced moving around European unive...

This is something that bugged me for some time, how do we add up standard errors? This is relevant when you fit a model with interaction terms and you are in...

Structural Equation Models are being used more and more frequently by ecologists due to the appeal of linking variables together in complex web of interactio...

While reading the method section of a recent article by Solivares et al, I came upon the following paragraph:

I recently held my defense and will most certainly make a couple of posts in the ”near” future on important aspects of the PhD that might helped current or f...

Recently I had more and more trouble to find topics for stats-orientated posts, fortunately a recent question from a reader gave me the idea for this one.

Science is also about convincing others, be it your supervisors or your collaborators, that what you intend to do is relevant to get the answers sought. This...

[An english version for this article is available here]

[Une version francaise de cette article est disponible ici]

In this post I would like to comment a bit on the recent forum paper by Houlahan et al on the importance of prediction to demonstrate ecological understandin...

One year as passed, now is the time to look back at my activity for 2016, explore some stats and take some blogging resolutions for 2017. This post was inspi...

In this post I will explore the spatial dynamic that arise from a simple deterministic host-parasitoid model with migration in a homogeneous environment. If ...

Below I will expand on previous posts on bayesian regression modelling using STAN (see previous instalments here, here, and here). Topic of the day is modell...

Real-world data sometime show complex structure that call for the use of special models. When data are organized in more than one level, hierarchical models ...

Last week I was at the annual meeting of the german, austrian and swiss ecologists (GfÖ) which took place in Marburg (DE). The title of the conference referr...

Next week will be the meeting of the German (and Swiss and Austrians) ecologists in Marburg and the organizing team launched a visualization contest based on...

In 2001 the book by Stephen Hubbell on the neutral theory of biodiversity was a major shift from classical community ecology. Before this book the niche-asse...

I am writing the general introduction for my thesis and wanted to have a nice illustration of the diversity of Arthropods compared to other phyla (my work fo...

Today is a rainy day and I had to drop my plans for going out hiking, instead I continued reading “Self-Organization in Complex Ecosystems” from Richard Solé...

So today at our group meeting I made a talk inspired by the McGill et al (2015) paper.

[Updated 22nd January 2017, corrected mistakes for getting the fixed effect estimates of factor variables that need to be averaged out]

Last week I was at the European Ecological Federation conference in Rome, I presented the results of one experiment that we ran last year (THE one big experi...

UPDATED: Thanks to Ben and Florian comments I’ve updated the first part of the post

Count data are widely collected in ecology, for example when one count the number of birds or the number of flowers. These data follow naturally a Poisson or...

With LM and GLM the predict function can return the standard error for the predicted values on either the observed data or on new data. This is then used to ...

Biological diversity (or biodiversity) is a complex concept with many different aspects in it, like species richness, evenness or functional redundancy. My f...

As always a more colourful version of this post is available on rpubs.

[UPDATE: I modified a bit the code of the function, now you do not need to pass as character the random effect terms]

Most biodiversity ecosystem function (BEF) experiment focus on one aspect of diversity: species richness, and had to it some functional composition flavour. ...

When building a regression model with categorical variables with more than two levels (ie “Cold”, “Freezing”, “Warm”) R is doing internally some transformati...

This post is a reflection on the roles that ecologist should have in the society, it was sparked by some discussion I had at the BES/SFE meeting in december....

This week was the British Ecological Society/ Société Francaise d’Écologie meeting in Lille, and as I am sitting on the train on the way home I’d like to giv...

So this week-end I talked about why and how we do biodiversity-experiment research and showed some results from our long-term (12 years) field site. What was...

In this post I try to define the framework in which my PhD is into, I will define some key terms that we use a lot and present briefly the field experiment I...

I gave today a lecture to master student in ecology about this field of research I am working on which is biodiversity and ecosystem function. You may find t...

This blog is now two years old, I started it in November 2012 as I was finishing my third semester of my master degree, the idea at that time was to use this...

In my surroundings at work I see quite a few people managing their data in spreadsheet software like Excel or Calc, these software will do the work but I usu...

I was attending this week my first scientific conference and I will give here some thoughts and impression I kept from it. The conference was located in Hild...

This is a short post presenting the great package semPlot developed by Sacha Epskamp (check out his nice website: http://sachaepskamp.com/) to make nice plot...

Setting the right random effect part in mixed effect models can be tricky in many applied situation. I will not talk here about choosing whether a grouping v...

When working with strings regular expressions are an extremely powerful tool to look for specific patterns in the strings. In informatics a string is several...

Entre le 22 et le 25 mai prochain les européens éliront leurs représentants au parlement européen, cette élection est souvent marqué par un désintérêt, un ma...

This is a flashback post, I was working on species distribution shifts over the last 40 years last summer and recently Rémi Genevest contacted me asking me h...

Les fonctions récursives sont des fonctions qui s’appellent elle mêmes lors de leurs exécution voir: https://fr.wikipedia.org/wiki/Fonction_r%C3%A9cursive.

(Generalized) Linear models make some strong assumptions concerning the data structure:

(going through this post again three years after I posted it. Made some, hopefully useful, changes)

All the R related post of this blog can know be found into the aggregated r-bloggers website! Check it out it is great: http://www.r-bloggers.com/

I had a nice workshop two weeks ago in Tübingen (south-germany) concerning Generalized Linear Mixed Models (GLMM) in R. The course was given by two ecologist...

R square is a widely used measure of model fitness, in General Linear Models (GLM) it can be interpreted as the percent of variance in the response variable ...

A friend of mine told me that she was spending her day colouring R plot because she never understood how to put color in them. This triggered a nerdy reactio...

Les nouvelles françaises font écho en ce moment d’un débat assez malsain sur la non-existante théorie du genre. Une frange nauséabonde de la population franç...

This is just a blog post for me to remember this hack that bother for some time, if it can help other people this is even better.

So as some of you may have noticed I am particularly enthusiast about R. For some time now I have also being using LaTex for my reports and presentation. Th...

I am currently following a course on probability theory in coursera (https://www.coursera.org/course/probas) and I’ve seen some graphs concerning the outcome...

A short update: here is the link to the english version of the manifest: https://www.change.org/petitions/a-stand-for-democracy-in-the-digital-age-3

So .. just a quick post to share with you my first lecture ever. It was for a master course that my working group is running on Experimental design and stati...

A recent article by Lidenmeyer and Likens talking about the new development of open-access data in ecology (the fact that dataset are published through a pee...

You are one click away from a post on the various way one can change the legend title in ggplot2, combine several aesthetic, remove the legend in ggplot2. ht...

Here is the link to the article:

With the european economy being stuck under gloomy economic conditions after the banking cisis of 2008, government have been dramatically slowing their roadp...

In classical linear modelling we are assuming that the response variable (Y) is normally distributed, however for certain type of data like count data or pre...

Here is a post with some information to control the layout of your graph produced by the ggplot library:

Here is a post discussing the possibilities of the rasterVis package:

In science nowadays the quality of a researcher is assessed through its publication in journals with a high impact factors. The impact factors was created by...

I guess we all had this demand from one of our tutor saying: “look at this nice output a previous intern did, well I’d like you to do the same”. In my case t...

Here is the link to a new R-related post on some really nice functionalities of the raster::plot function: http://rpubs.com/Lionel/5476

Here is a new post, one click away, on how to make maps using the functions implemented by ggplot: http://rpubs.com/Lionel/5242

From now on every R related post will be posted there: http://rpubs.com/Lionel Since it is very nice and easy for me to upload R code and graphics using Rmar...

The basic default options of the raster package depict well continous data but when plotting caterogical data on maps like land use or species presence/absen...

Nowadays more and more spatial data analysis are performed in Biology due to the ever expanding information freely available on the internet, as for example ...

For loops are great, they allow you to go elements by elements through a list, data frame… and to perform operations on these subsets of data. This is very u...

One of the biggest flaw of R is the fact that the data you load and use into it are stored in the memory (on the RAM) and not on the disk. Hence as you are w...

Since last year a new UN body has been created aiming at increasing the awareness of decision makers about the current biodiversity crisis. This new body is ...

The base package in R allow nice graphs to be drawn but more advanced packages allow better control and still nicer graphs to be created. Two packages are ma...

Before going into complex model building, looking at data relation is a sensible step to understand how your different variable interact together. Correlatio...

I just came across a great solution today to one of my recurring problems in R. When I run a for loop for example I create/modify some object and then I some...

Everyone care about the environment and enjoy a sunny day walk through the woods (apart for certain categories of people like hardcore gamers), yet these nic...

Here you will learn about transforming, merging, ordering a data frame, changing the column order, removing a variable, subsetting and indexing

Even if few peoples are aware of it there are many UN conventions (an agreement between states) working to find solutions to the current environmental issues.

In this article I will introduce to you the functions that make your life in R so much easier. For example purposes I will use the “mtcars” data frame.

``

R is an open source statistical software, which mean that it is free and that you can access all the codes that you are using.