Skip to content

Commit

Permalink
-eval_design_mc() Add example of error bars
Browse files Browse the repository at this point in the history
  • Loading branch information
tylermorganwall committed Mar 25, 2024
1 parent fb21b67 commit 6bfc5e7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/eval_design_mc.R
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@
#'eval_design_mc(designcoffee, nsim = 100, glmfamily = "gaussian")
#'}
#'if(skpr:::run_documentation()) {
#'#We can also add error bars on the Monte Carlo power values by setting
#'#`detailedoutput = TRUE` (which will print out other information as well).
#'#We can set the confidence via the `advancedoptions` argument.
#'eval_design_mc(designcoffee, nsim = 100, glmfamily = "gaussian",
#' detailedoutput = TRUE, advancedoptions = list(ci_error_conf = 0.8))
#'}
#'if(skpr:::run_documentation()) {
#'#We see here we generate approximately the same parameter powers as we do
#'#using the normal approximation in eval_design. Like eval_design, we can also change
#'#effectsize to produce a different signal-to-noise ratio:
Expand Down
7 changes: 7 additions & 0 deletions man/eval_design_mc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6bfc5e7

Please sign in to comment.