Comments (10)
Oh...nevermind.
It seems that this is the same as mosaicData::Gestation
But then shouldn't this package import mosaicData
?
from openintro.
Upon further review, these data sets do not appear to be the same. In particular, the parity
and smoke
variables are handled differently. In babies
they are binary, but in mosaicData::Gestation
they are not.
Can anyone illuminate?
from openintro.
I'm afraid there is a data provenance issue here and I have not been able to track down the origin any further than what is stated in the help file of the package.
from openintro.
More on this at https://twitter.com/AmeliaMN/status/1331037890382467076?s=20
from openintro.
I feel like this could be a good opportunity to update the ncbirths dataset, using data from 2019. Pretty sure all my wrangling code would work on the new data, the only tricky piece is that real ages are redacted in the public-facing data, so the only thing available are ranges. Maybe someone has a smart idea for how to impute some ages or just randomly assign an age in the range.
from openintro.
I think it's a great idea to have the updated datasets here @AmeliaMN! We use the existing dataset in current books so I'd hesitate to replace it -- we can put a note in the docs clarifying the provenance issue as well as suggesting using the newer version. Once it's out of all the most recent editions of the books we could consider deprecating it.
I wonder about naming, how about ncbirths19
?
Also, ages, hm... First question that comes to mind is, do we have to have ages? I don't have a great suggestion for imputing but could look up an appropriate method. Selecting from a random distribution in the range should be straightforward.
from openintro.
That's fair, and I have seen other textbooks do similar things. For example, Stat2Data::BaseballTimes
vs Stat2Data::BaseballTimes2017
or Lock5Data::HollywoodMovies
vs Lock5Data::HollywoodMovies2011
. I think ages was a nice variable because it is numeric, and this dataset gets used places like the inference for numeric data lab (that's probably an old link, just easy to put my hands on) and you exploring NC births lab.
from openintro.
Given that the age bands are not very wide, I wouldn't be opposed to a random draw from a uniform in that range. We can place the data prep code in the data-raw
folder. I'd be happy to do this based on your work or a PR is good too, whichever you prefer!
from openintro.
I started working on a PR and realized a couple things: 1. it seems like the most recent natality data is from 2014, and 2. probably the reason the ncbirths
data was from 2004 is that is the last year the data included state information! So, I could make a births14
dataset that would have random babies born in 2014, but they wouldn't necessarily be from North Carolina.
from openintro.
I think that's perfectly fine!
from openintro.
Related Issues (20)
- ipo data format and examples need revisiting HOT 1
- ami_occurrences - need better description HOT 2
- chapter 5 - anova - bat10 dataset not found HOT 2
- Rewrite examples in mlbbat10
- Make sure to alias countyComplete with county_complete
- Adjust treeDiag() function to have an option to output counts HOT 2
- Pull out larger datasets into their own packages HOT 4
- yrbss documentation HOT 2
- find source of murders dataset
- rosling_responses mentioned in text but not present in package HOT 2
- qqnormsim() ideas HOT 3
- Incorrect title on docs: hfi
- Add Nick Paterno to the package author list before next CRAN release HOT 2
- Email data corrections
- Add a page with csv download for all data HOT 1
- ask documentation
- Add additional citation to BAC HOT 2
- [Feature]: Add aldrin data
- [Bug]: fastfood data has incorrect salad variable HOT 2
- Description sentence HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openintro.