View source: R/create_likelihood.R
create_likelihood | R Documentation |
This function creates a likelihood distribution based on the specified distribution family, mean, standard error, and degrees of freedom.
create_likelihood(distribution_likelihood, mean, se, dfdata = NULL)
distribution_likelihood |
A character string specifying the likelihood distribution. Options include '"normal"' and '"t"'. |
mean |
The mean of the likelihood distribution. |
se |
The standard error of the likelihood distribution. |
dfdata |
The degrees of freedom (only required for '"t"' distribution). |
- **Normal likelihood:** Uses 'mean' and 'sd = se'. - **T-distribution likelihood:** Uses 'mean', 'sd = se', and 'df = dfdata'.
A 'bayesplay' likelihood object corresponding to the specified distribution.
bayesplay::likelihood
, Bf_samplesize
## Not run:
# Normal likelihood with mean = 0 and SE = 1
normal_likelihood <- create_likelihood("normal", mean = 0, se = 1)
# T-distribution likelihood with mean = 0, SE = 1, df = 10
t_likelihood <- create_likelihood("t", mean = 0, se = 1, dfdata = 10)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.