R Dataset / Package MASS / birthwt


On this R-data statistics page, you will find information about the birthwt data set which pertains to Risk Factors Associated with Low Infant Birth Weight. The birthwt data set is found in the MASS R package. You can load the birthwt data set in R by issuing the following command at the console data("birthwt"). This will load the data into a variable called birthwt. If R says the birthwt data set is not found, you can try installing the package by issuing this command install.packages("MASS") 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 birthwt R data set. The size of this file is about 4,955 bytes.

Risk Factors Associated with Low Infant Birth Weight


The birthwt data frame has 189 rows and 10 columns. The data were collected at Baystate Medical Center, Springfield, Mass during 1986.




This data frame contains the following columns:


indicator of birth weight less than 2.5 kg.


mother's age in years.


mother's weight in pounds at last menstrual period.


mother's race (1 = white, 2 = black, 3 = other).


smoking status during pregnancy.


number of previous premature labours.


history of hypertension.


presence of uterine irritability.


number of physician visits during the first trimester.


birth weight in grams.


Hosmer, D.W. and Lemeshow, S. (1989) Applied Logistic Regression. New York: Wiley


Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.


bwt <- with(birthwt, {
race <- factor(race, labels = c("white", "black", "other"))
ptd <- factor(ptl > 0)
ftv <- factor(ftv)
levels(ftv)[-(1:2)] <- "2+"
data.frame(low = factor(low), age, lwt, race, smoke = (smoke > 0),
           ptd, ht = (ht > 0), ui = (ui > 0), ftv)
options(contrasts = c("contr.treatment", "contr.poly"))
glm(low ~ ., binomial, bwt)

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-mass-birthwt.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-34016.csv 4.84 KB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0

This documentation is licensed under GPLv3 or later.