Skip to content

Commit

Permalink
Merge pull request #1 from mine-cetinkaya-rundel/master
Browse files Browse the repository at this point in the history
update reference for smoking dataset + new data: gpa_study_hours
  • Loading branch information
andrewpbray committed Jun 22, 2015
2 parents 7cfb2ed + d34e7b0 commit 7b58abf
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
Binary file added openintro/data/gpa_study_hours.rda
Binary file not shown.
31 changes: 31 additions & 0 deletions openintro/man/gpa_study_hours.Rd
@@ -0,0 +1,31 @@
\name{gpa_study_hours}
\alias{gpa_study_hours}
\docType{data}
\title{gpa_study_hours}
\description{
A data frame with 193 rows and 2 columns. The columns represent the variables \code{gpa} and \code{study_hours} for a sample of 193 undergraduate students who took an introductory statistics course in 2012 at a private US university.
}
\usage{data(gpa_study_hours)}
\format{
A data frame with 193 observations on the following 2 variables.
\describe{
\item{\code{gpa}}{ Grade point average (GPA) of student. }
\item{\code{study_hours}}{ Number of hours students study per week. }
}
}
\details{
GPA ranges from 0 to 4 points, however one student reported a GPA > 4. This is a data error but this observation has been left in the dataset as it is used to illustrate issues with real survey data. Both variables are self reported, hence may not be accurate.
}
\source{
Collected at a private US university as part of an anonymous survey in an introductory statistics course.
}
\references{
}
\examples{
data(gpa_study_hours)

#===> gap vs. study hours <===#
plot(gpa_study_hours$gpa ~ gpa_study_hours$study_hours, xlab="Study hours/week", ylab = "GPA", pch=20, col = COL[1,2])

}
\keyword{datasets}
2 changes: 1 addition & 1 deletion openintro/man/smoking.Rd
Expand Up @@ -26,7 +26,7 @@ Survey data on smoking habits from the UK. The data set can be used for analyzin
}
}
\source{
\url{http://www.stats4schools.gov.uk/large_datasets/smoking/default.asp}
National STEM Centre, Large Datasets from stats4schools, \url{http://www.nationalstemcentre.org.uk/elibrary/resource/3624/large-datasets-from-stats4schools}.
}
\examples{
data(smoking)
Expand Down

0 comments on commit 7b58abf

Please sign in to comment.