Hierarchical Models

25 April 2019

Hierarchical models Hierarchical models Lucas Deschamps 5 april 2019 Packages Introduction Hierarchical models Background Number of consumers : a simple mean model Goal Results Choosing the likelihood Poisson distribution Data Generating Process Looking at the priors Simulating from Data Generating Process Varying intercepts Goal Results Results A simple intercept model...

Initiation to RMarkdown

22 February 2019

Initiation to RMarkdown Initiation to RMarkdown Lucas Deschamps 21 février 2019 Download Please download the files on github Introduction What is my objective giving this formation Show basic usage of Rmarkdown Share some personnal advices and reflexions about its usage Why Rmarkdown? In my M.Sc. Analysis folder I have… 313...

Rgismaps

25 January 2019

NumeriLab; R maps and GIS NumeriLab; R maps and GIS Arthur de Grandpré 25 janvier 2019 Context Most would agree that data science should always start and end with data visualization. It allows the scientist to understand the data, its structure and distribution, but also to connect with the public,...

Data generating process

27 November 2018

Data Generating Process Data Generating Process Lucas Deschamps First steps Download and dezip the following file https://github.com/RIVE-Numeri-lab/RIVE-Numeri-lab.github.io/blob/master/projects/LD_DGP/DGP.zip Open the contained Rproject Open “Data_Generating_Process.html” (in your browser, for example) Load the following libraries and run source and set.seed rm(list = ls()) library(tidyverse) library(deSolve) library(rstan) library(MCMCpack) source("Functions_DGP.R") set.seed(666) Nature is a mess,...

Fast data manipulation with dplyr and its allies

30 October 2018

Our dataset As in the previous workshop, we’ll use the mammal sleep dataset from ggplot2 to run our examples : library(ggplot2) data(msleep) msleep # A tibble: 83 x 11 name genus vore order conservation sleep_total sleep_rem sleep_cycle <chr> <chr> <chr> <chr> <chr> <dbl> <dbl> <dbl> 1 Cheet… Acin… carni Carn…...

Rapid data visualization with ggplot2

26 September 2018

Clarifications Everything you’ll see in this post could also be done with base graphics in R. The advantage of using ggplot2 is that you’ll spend much less time programming (i.e. doing loops, managing arrays, conditions, etc.) and much more time actually visualising data. Also, this workshop is not about plot...

Generalized Bayesian Factor Model

04 September 2018

Generalized Bayesian Factor Model Generalized Bayesian Factor Model Fitting a Generalized Bayesian Factor Model with stan Lucas Deschamps 03/09/2018 Standard caveat : I am not a mathematician nor a statistician, only an ecologist who loves discover and share new bayesian statistical approaches with his somehow naive view of statistics. I...