knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
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...
You can install the released version of ClinStats from GitHub with:
remotes::install_github("the8thday/ClinStats")
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.