This file contains hidden or 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
set.seed(2) | |
options(scipen=20) #disable scientific notation for numbers | |
nSim<-10 #numbber of simulated studies | |
library(pwr) | |
library(MBESS) | |
library(gsDesign) # The group sequential design package | |
library(BayesFactor) |
This file contains hidden or 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('shiny') | |
# read this: http://alexanderetz.com/2015/04/15/understanding-bayes-a-look-at-the-likelihood/ | |
shinyApp( | |
ui = shinyUI(fluidPage( | |
sidebarLayout( | |
sidebarPanel( | |
sliderInput("p1", label = "p1", | |
min = 0, max = 1, value = 0.7, step = 0.01), |