March 2019
Beginner to intermediate
448 pages
13h 14m
English
In this example, we will generate a synthetic dataset where we already know the parameters, with the intention of estimating an MCMC model coded fully by us. Since we are using quite simple priors, these priors should not be far away from the values used to generate the data:
library(ggplot2)v1_1 = rnorm(1000,10,1)v1_2 = rnorm(1000,10,1)v1_3 = rnorm(1000,10,1)v2_1 = rnorm(1000,10,1)v2_2 = rnorm(1000,10,1)v2_3 = rnorm(1000,10,1) ...
Read now
Unlock full access