Skip to content

Commit

Permalink
-Declutter output from calculate_power_curves() examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tylermorganwall committed Mar 25, 2024
1 parent 6bfc5e7 commit 446f933
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
15 changes: 10 additions & 5 deletions R/calculate_power_curves.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@
#' altitude = c(0, 2000, 4000),
#' bean_sun = c("low", "partial", "high"))
#'#Plot power for a linear model with all interactions
#'calculate_power_curves(trials=seq(10,60,by=1),
#'calculate_power_curves(trials=seq(10,60,by=5),
#' candidateset = cand_set,
#' model = ~.*.,
#' alpha = 0.05,
#' effectsize = 1,
#' eval_function = "eval_design")
#' eval_function = "eval_design") |>
#' head(30)
#'
#'}
#'if(skpr:::run_documentation()) {
#'#Add multiple effect sizes
Expand All @@ -48,7 +50,8 @@
#' model = ~.*.,
#' alpha = 0.05,
#' effectsize = c(1,2),
#' eval_function = "eval_design")
#' eval_function = "eval_design") |>
#' head(30)
#'}
#'if(skpr:::run_documentation()) {
#'#Generate power curve for a binomial model
Expand All @@ -57,7 +60,8 @@
#' model = ~.,
#' effectsize = c(0.6,0.9),
#' eval_function = "eval_design_mc",
#' eval_args = list(nsim = 100, glmfamily = "binomial"))
#' eval_args = list(nsim = 100, glmfamily = "binomial")) |>
#' head(30)
#'}
#'if(skpr:::run_documentation()) {
#'#Generate power curve for a binomial model and multiple effect sizes
Expand All @@ -66,7 +70,8 @@
#' model = ~.,
#' effectsize = list(c(0.5,0.9),c(0.6,0.9)),
#' eval_function = "eval_design_mc",
#' eval_args = list(nsim = 100, glmfamily = "binomial"))
#' eval_args = list(nsim = 100, glmfamily = "binomial")) |>
#' head(30)
#'}
calculate_power_curves = function(trials,
effectsize = 1,
Expand Down
15 changes: 10 additions & 5 deletions man/calculate_power_curves.Rd

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

0 comments on commit 446f933

Please sign in to comment.