forked from biostats-r/biostats.tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
83 lines (54 loc) · 2.29 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
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%"
)
```
# biostats.tutorials
<!-- badges: start -->
<!-- badges: end -->
The `biostats.tutorials` package includes
- tutorials to reach reproducible data analysis with R with the tidyverse package.
- shiny apps for teaching statistics concepts to biologists.
## Installation
You can install `biostats.tutorials`
from [GitHub](https://github.com/biostats-r/biostats.tutorials) with:
``` r
# install.packages("remotes")
remotes::install_github("biostats-r/biostats.tutorials")
```
# The tutorials
Importing and cleaning data usually take up the vast majority of time spent working on a project.
The statistical analysis is often fairly quick and done in a few lines of code.
To make an analysis reproducible, we need to do all the data processing with code (rather than editing files in Excel).
The tutorials are designed to help you process your raw data entirely with R so that it is ready for plotting and statistical analysis.
To access the tutorials, you first need to load the package.
```{r library, include=FALSE}
library(biostats.tutorials)
```
The tutorials should appear in the tutorials tab.
This is normally in the top right pane of Rstudio next to the Environment and History tabs.
You can also get a list of the available tutorials by running
```{r available-tutorials}
learnr::available_tutorials(package = "biostats.tutorials")
```
Tutorials can be run with
```{r run-tutorial, eval = FALSE}
learnr::run_tutorial("Dates-and-times", package = "biostats.tutorials")
```
## Running apps
To run the shiny apps, load the package then run one of the apps.
```{r example, eval = FALSE}
library(biostats.tutorials)
power_lm_app()
```
## Available apps
- `publication_bias_app()` How much could publication bias, the tendency not to publish non-significant results, bias the literature?
- `power_lm_app()` Find out how much statistical power a linear model has for an experiment has given the effect size, standard deviation of residuals and number of observations.
- `influence_leverage_app()` Explore how the position of an point changes diagnostic plots.