This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
name: build_and_goto_gh_pages | |
jobs: | |
blogdown: | |
name: build_and_push_to_gh_pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(magrittr) | |
library(tidyverse) | |
library(ChainLadder) | |
############" Fits mack AND my model in parallel to check if it's ok : | |
check_model <- function(triangle){ | |
df <- triangle %>% | |
as.data.frame %>% | |
mutate( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ChainLadder) | |
library(mvtnorm) | |
##### Usefull functions ##### | |
.diag <- function(Triangle) { | |
# sympli returns the diagonal of the Triangle | |
unname(rev(diag(Triangle[nrow(Triangle):1, ]))) | |
} | |
.DF <- function(Triangle) { | |
# Simply returns chain-ladder simples developpement factors. | |
n <- dim(Triangle)[1] |