Last active
June 25, 2020 13:06
-
-
Save dmi3kno/aaed1a44ff88b6d8a4052cce12845add to your computer and use it in GitHub Desktop.
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(tidybayes) | |
library(ggplot2) | |
library(hrbrthemes) | |
m <- 100 | |
s <- 10 | |
dist_df <- tibble::tibble(y=seq.int(0.01,0.99, by=0.05), | |
arg1_mean=qlnorm(p=y,meanlog=log(m), sdlog=log(s)), | |
arg2_sd=abs(0.5-y+0.1)*400+100) | |
ggplot(dist_df)+ | |
geom_line(aes(x=arg1_mean, y=y), color="darkred")+ | |
stat_dist_slabh(aes(dist="norm", arg1=arg1_mean, arg2=arg2_sd, y=y))+ | |
theme_ipsum_rc(grid_col="grey95") | |
ggsave("metalog_prior.png", width = 5, height = 5) |
Author
dmi3kno
commented
Jun 25, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment