-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
41 lines (29 loc) · 1.04 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
---
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%"
)
```
# findsamplesize
<!-- badges: start -->
[![R-CMD-check](https://github.com/berkosarFIND/findsamplesize/workflows/R-CMD-check/badge.svg)](https://github.com/berkosarFIND/findsamplesize/actions)
<!-- badges: end -->
findsamplesize provides several functions to calculate sample sizes in diagnostic studies, as well as cluster randomized trials.
## Installation
You can install the development version of findsamplesize like so:
``` r
devtools::install(file.path(getwd(),'findsamplesize') )
library(findsamplesize)
```
## Example
This is a basic example which shows you how to calculate the sample size:
```{r example}
library(findsamplesize)
sample_size_calculation(sen_spe= 0.8, alpha=0.05, power=0.8, margin=0.05, prevalence = NULL, prevalence_power = NULL, performance_characteristic = "sen")
```