R Dataset / Package Stat2Data / TMS


On this R-data statistics page, you will find information about the TMS data set which pertains to TMS. The TMS data set is found in the Stat2Data R package. You can load the TMS data set in R by issuing the following command at the console data("TMS"). This will load the data into a variable called TMS. If R says the TMS data set is not found, you can try installing the package by issuing this command install.packages("Stat2Data") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the TMS R data set. The size of this file is about 64 bytes.



Effects of transcranial magnetic stimulation (TMS) on migraine headaches


A dataset with 2 observations on the following 4 variables.

R project statistics dataset table
Group Treatment group: Placebo or TMS
Yes Count of number of patients that were pain-free
No Count of number of patients that had pain
Trials Number of patients in the group


A study investigated whether a handheld device that sends a magnetic pulse into a person's head might be an effective treatment for migraine headaches. Researchers recruited 200 subjects who suffered from migraines and randomly assigned them to receive either the TMS (transcranial magnetic stimulation) treatment or a sham (placebo) treatment from a device that did not deliver any stimulation. Subjects were instructed to apply the device at the onset of migraine symptoms and then assess how they felt two hours later. This dataset is a two-way table of the results.


Based on results in R. B. Lipton, et. al. (2010) “Single-pulse Transcranial Magnetic Stimulation for Acute Treatment of Migraine with Aura: A Randomised, Double-blind, Parallel-group, Sham-controlled Trial," 9(4):373-380.


Dataset imported from https://www.r-project.org.

Title Authored on Content type
OpenIntro Statistics Dataset - dream August 9, 2020 - 12:25 PM Dataset
OpenIntro Statistics Dataset - winery_cars August 9, 2020 - 2:38 PM Dataset
R Dataset / Package HSAUR / toothpaste March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HSAUR / pottery March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HistData / Guerry March 9, 2018 - 1:06 PM Dataset
<iframe src="https://r-data.pmagunia.com/iframe/r-dataset-package-stat2data-tms.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-13356.csv 64 bytes
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0

This documentation is licensed under GPLv3 or later.