Skip to content

Commit

Permalink
Added missing elements to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingo Rohlfing committed Feb 24, 2020
1 parent 5765640 commit 4173ed9
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 4 deletions.
7 changes: 7 additions & 0 deletions R/qcapower.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ qcapower <- function(cases, null_hypo, alt_hypo, sims = 1000, perms = 10000,
#' consistent from inconsistent terms.
#' @param alt_hypo Alternative hypothesis (\emph{H1}). Expected, actual
#' consistency value of term.
#' @return An integer showing how many cases are needed to achieve the
#' target level of power.
#'
#' @seealso \code{\link{qp_cases_brute}}
#'
Expand Down Expand Up @@ -129,6 +131,8 @@ qp_cases <- function(power_target, null_hypo, alt_hypo) {
#' @param max_value Default maximum number of cases for search
#' @param progress Show progress of calculation (default \code{TRUE})
#' @param ... \code{qcapower} parameters -- see \code{\link{qcapower}}
#' @return An integer showing how many cases are needed to achieve the
#' target level of power.
#'
#' @seealso \code{\link{qp_cases_brute}}
#'
Expand Down Expand Up @@ -173,6 +177,7 @@ qp_cases_brute <- function(power_target, start_value = 2, max_value = 100,
#' @param power_est Dataframe containing the simulation results (see
#' \code{\link{qcapower}})
#' @param title Option for adding title to plot (default \code{FALSE})
#' @return A line plot (`gg` object).
#' @examples
#' power_data <- qcapower(cases = 20, null_hypo = 0.8, alt_hypo = 0.95, sims = 10, perms = 1000)
#' qp_run_plot(power_data)
Expand Down Expand Up @@ -219,6 +224,8 @@ qp_run_plot <- function(power_est, title = FALSE) {
#' @param power_est Dataframe containing simulation results (see
#' \code{\link{qcapower}})
#' @param title Option for adding title to plot (default \code{FALSE})
#' @return A sina plot using the cases to visualize the density
#' distribution (`gg` object).
#' @examples
#' sim_data <- qp_sina_data
#' qp_quant_plot(sim_data)
Expand Down
12 changes: 10 additions & 2 deletions man/qcapower.Rd

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

4 changes: 4 additions & 0 deletions man/qp_cases.Rd

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

13 changes: 11 additions & 2 deletions man/qp_cases_brute.Rd

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

4 changes: 4 additions & 0 deletions man/qp_quant_plot.Rd

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

3 changes: 3 additions & 0 deletions man/qp_run_plot.Rd

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

0 comments on commit 4173ed9

Please sign in to comment.