knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

mcpwr

The goal of mcpwr is to perform Monte Carlo power calculations

Installation

You can install the development version of mcpwr from GitHub with:

# install.packages("devtools")
devtools::install_github("TJMurphy/mcpwr")

Example

The poisdm function is a datamaker to simulate groups of Poisson-distributed count data. The plot argument allows users to print a histogram and jitterplot of the output.

library(mcpwr)

# generate data and graphs
# for group 1 (group of 40 measurements with a mean of 10)
# and group 2 (group of 50 with measurements with a mean of 12)

poisdm(c(40, 50), c(10, 12), c("group1", "group2"), TRUE)


TJMurphy/mcpwr documentation built on May 3, 2022, 4:41 a.m.