Comments (2)
That was an editorial decision on our part. On the one hand, we'd love to be able to include situations like this one, but on the other (as you suggest about the digression) once we try to start including everything, soon we'll end up with nothing. It's a tough balancing act. Also, in our opinions the reordering of factors is more of a topic for a straight data science course, and not so much a course on statistical inference that uses data science.
However, as you suggest, it might be worth at least point readers in the right direction, without entirely opening the can of worms that is categorical/factors.
from moderndive_book.
Hi @oscci, thanks for this suggestion. We just addressed it in d7dc2ab
Specifically in Section 6.2.2 Linear regression on linear regression with a categorical variable we amended the text to read:
You might be asking at this point why was Africa chosen as the "baseline for comparison" group. For no other reason than it comes first alphabetically of the five continents; by default R arranges factors/categorical variables in alphanumeric order. However you can change this baseline group to be another continent if you manipulate the variable
continent
's factor "levels" using theforcats
package. See Chapter 15 of Garrett Grolemund and Hadley Wickham's book for examples.
from moderndive_book.
Related Issues (20)
- Update all "Scenarios of sampling for inference"
- Add quotation marks to "beauty" score in text
- Ch 11 Inference for Regression: Amplify what todo if any of LINE conditions aren't met
- Update language in Preface
- Getting error in building to epub format HOT 1
- Rendering error-section reference in Ch. 9 HOT 1
- Implement .by argument instead of group_by() HOT 1
- Typo in book
- Change to base R pipe from magrittr pipe
- List of potential typos
- Change to bs4_book for format?
- Add figure with population mean weight of almonds marked with red line
- v2 Ch8 discussion points
- Ensure we can get semi-frequent estimates of delta in PDF page count HOT 2
- Discount code HOT 1
- V2 drop down menus for sections in LHS menu don't work
- Appendix C - Interactive Plot HOT 3
- Ch8 - Two links are broken
- pdf version HOT 1
- Change pipe on moderndive.com 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 moderndive_book.