Learn R Programming

scidesignR

=======

An R package to accompany Taback, N. (2022). Design and Analysis of Experiments and Observational Studies using R. Chapman & Hall

The goal of scidesignR is to be able to reproduce the analyses and answer questions in Taback (2022). Design and Analysis of Experiments and Observational Studies using R.

Installation

You can install the development version of scidesignR from GitHub with:

# install.packages("devtools")
devtools::install_github("scidesign/scidesignR")

Example

Compute the row and column means from Bliss and Rose data in section 5.11.1

library(scidesignR)
library(tidyverse)
#> ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ──
#> ✓ ggplot2 3.3.5     ✓ purrr   0.3.4
#> ✓ tibble  3.1.6     ✓ dplyr   1.0.8
#> ✓ tidyr   1.2.0     ✓ stringr 1.4.0
#> ✓ readr   2.1.2     ✓ forcats 0.5.1
#> ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
#> x dplyr::filter() masks stats::filter()
#> x dplyr::lag()    masks stats::lag()
BR_LatSq %>%
  group_by(Weeks) %>%
  summarise(Weeks_Ave = mean(value))
#> # A tibble: 4 × 2
#>   Weeks Weeks_Ave
#>   <dbl>     <dbl>
#> 1     1      14.8
#> 2     2      15.3
#> 3     3      14.9
#> 4     4      15.1

Copy Link

Version

Install

install.packages('scidesignR')

Monthly Downloads

177

Version

1.0.0

License

CC BY 4.0

Maintainer

Nathan Taback

Last Published

April 27th, 2022

Functions in scidesignR (1.0.0)

hsvdat

hsvdat
painstudy

painstudy
nhefs9282

nhefs9282
silkdat

silkdat
wtlossdat

wtlossdat
scidesignR_example

Get path to scidesignR example
shoedat_obs

shoedat_obs
painstudy2

painstudy2
rtdat

rtdat
lifesat_childmort

lifesat_childmort
leafspring

leafspring
CSectdat

CSectdat
BR_LatSq

BR_LatSq
covid19_trial

covid19_trial
cookies

cookies
fertdat

fertdat
chemplant

chemplant
agedata

agedata