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

ClinStats

The goal of ClinStats is to calculate some clinical index in a very easy and robust way,such as OR value, RR value, sample size for a RCT and on...

Installation

You can install the released version of ClinStats from GitHub with:

remotes::install_github("the8thday/ClinStats")

Example

This is a basic example which shows you how to solve a common problem:

library(ClinStats)

mymatrix <- matrix(c(156, 9421, 1531, 14797), nrow = 2, byrow = TRUE)
calcRelativeRisk(mymatrix)
calcOddsRatio(mymatrix, alpha = 0.05, referencerow = 2 )

Note that: Some scripts come from a little book



the8thday/ClinStats documentation built on July 20, 2022, 11:36 p.m.