Description Usage Arguments Value Examples
Calculate likelihood of data under model
1 2 | likelihood(sample_mean = 0, sample_se = 0.1, sample_df = 99,
model = c("H0", "normal", "uniform"), ..., steps = 2000)
|
sample_mean |
the observed sample mean |
sample_se |
the observed sample standard error |
sample_df |
the observed sample degrees of freedom |
model |
the model under which to calculate likelihood (H0, normal or uniform |
... |
model parameters (mean, sd and tail for normal, lower and upper for uniform) |
steps |
the number of steps to integrate over |
double
1 2 3 | lNull <- likelihood(0.5, 1/sqrt(30), 29, "H0")
lTheory <- likelihood(0.5, 1/sqrt(30), 29, "normal", mean = 0, sd = 1, tail = 1)
BayesFactor <- lNull/lTheory
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.