-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
executable file
·43 lines (30 loc) · 1.03 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# ClinStats
<!-- badges: start -->
<!-- badges: end -->
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](https://github.com/the8thday/ClinStats) with:
``` r
remotes::install_github("the8thday/ClinStats")
```
## Example
This is a basic example which shows you how to solve a common problem:
```{r example}
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](https://a-little-book-of-r-for-biomedical-statistics.readthedocs.io/en/latest/)