process_results {BayesDissolution} | R Documentation |
Helper function for processing results
Description
This function helps process the final results for the different f2 functions (e.g., f2bayes).
Usage
process_results(
name,
f2.dist,
ci.type = c("quantile", "HPD"),
level,
get.dist = FALSE
)
Arguments
name |
A character string denoting the type of method used to calculate the interval. |
f2.dist |
A vector of samples for the F2 parameter or f2 statistic. |
ci.type |
The type of confidence, or credible, interval to return. The option |
level |
The confidence level or probability associated with the confidence or credible interval, respectively. Must be a value between 0 and 1. |
get.dist |
logical; if |
Value
The function returns a data object of class dis_data.
Examples
### dis_data comes loaded with the package
out1 <- f2bayes(dis_data, prob = 0.9, B = 1000, get.dist = TRUE)
out2 <- process_results("bayes", out1$f2.dist, level = 0.9)
### out1 and out2 should contain the results for the info and intervals
[Package BayesDissolution version 0.2.1 Index]