View source: R/process_results.R
process_results | R Documentation |
This function helps process the final results for the different f2 functions (e.g., f2bayes).
process_results(
name,
f2.dist,
ci.type = c("quantile", "HPD"),
level,
get.dist = FALSE
)
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 |
The function returns a data object of class dis_data.
### 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.