Skip to content

TJMurphy/mcpwr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

#> [1] "input"
#>   groupnames  n lambda
#> 1     group1 40     10
#> 2     group2 50     12

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages