inst/doc/PRDA.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(PRDA)

## ----setup, eval = F----------------------------------------------------------
#  # If devtools is not installed yet:
#  # install.packages( "devtools" )
#  devtools::install_github("CaludioZandonella/PRDA",
#                           build_vignettes = TRUE)
#  library(PRDA)

## ---- retro-------------------------------------------------------------------
set.seed(2020) # set seed to make results reproducible

retrospective(effect_size = .25, sample_n1 = 13, test_method = "pearson")

## ---- pro---------------------------------------------------------------------
prospective(effect_size = .25, power = .8, test_method = "pearson", 
            display_message = FALSE)

Try the PRDA package in your browser

Any scripts or data that you put into this service are public.

PRDA documentation built on Dec. 8, 2020, 5:07 p.m.