Skip to content

Data and Code for Methods in Biostatistics in R

License

Notifications You must be signed in to change notification settings

garepos/biostatmethods

Repository files navigation

Travis build status AppVeyor Build Status Coverage status

biostatmethods Package:

The goal of biostatmethods is to provide accompanying code and data from the book “Methods in Biostatistics with R”.

Accessing the Data

All the data from the book is located in the inst/extdata folders. If you would like to download these, they can be accessed from http://johnmuschelli.com/. For example:

http://johnmuschelli.com/biostatmethods/inst/extdata/bmi_age.txt http://johnmuschelli.com/biostatmethods/inst/extdata/NIfTI/FLAIR.nii.gz

should be links that will download the data (if you click Save As).

Data Inside the Package

If you want to access the data from the book, there is a simple function biostat_data that will return the filenames of these files.

library(biostatmethods)
biostat_data("bmi_age.txt")
biostat_data("FLAIR.nii.gz")

One of the reasons that we included these as files rather than attached them into the package is that we believe data importing is one of the most important parts of data analysis and would like readers to get comfortable with that, whether it be a text file or a brain image.

Installation

You can install biostatmethods from GitHub with:

# install.packages("remotes")
remotes::install_github("muschellij2/biostatmethods")

About

Data and Code for Methods in Biostatistics in R

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%