knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Installing and loading the package

# # Installing
# install.packages("devtools")
# devtools::install_github("BencePalfi/SampleSizeBF")
# 
# # Loading
# library(SampleSizeBF)

Samplesize planning

You can plan your sample size TODO add more explanation

Normal prior

TODO add more explanation

Bf_samplesize(distribution_likelihood = "normal", distribution_prior = "normal", sd_of_theory = 1.5, sd1 = 1.8, sd2 = NULL, tail = 1, threshold = 3, tpr = .8, n_start = 5, n_end = 1000, step = 1)

Cauchy prior

TODO add more explanation

Bf_samplesize(distribution_likelihood = "normal", distribution_prior = "cauchy", sd_of_theory = 10.5, sd1 = 1.8, sd2 = NULL, tail = 1, threshold = 3, tpr = .9, n_start = 5, n_end = 10000, step = 1)

Uniform prior

TODO add more explanation

Bf_samplesize(distribution_likelihood = "normal", distribution_prior = "uniform", sd_of_theory = 1.5, sd1 = 1.8, sd2 = NULL, tail = 1, threshold = 3, tpr = .8, n_start = 5, n_end = 1000, step = 1)


BencePalfi/SampleSizeBF documentation built on April 3, 2025, 2:01 p.m.