openintro | 📦 R package for data and supplemental functions | Data Visualization library
kandi X-RAY | openintro Summary
kandi X-RAY | openintro Summary
Supplemental functions and data for OpenIntro resources, which includes open-source textbooks and resources for introductory statistics at openintro.org. The package contains data sets used in our open-source textbooks along with custom plotting functions for reproducing book figures. The package also contains the datasets used in OpenIntro labs. Note that many functions and examples include color transparency; some plotting elements may not show up properly (or at all) when run in some versions of Windows operating system.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of openintro
openintro Key Features
openintro Examples and Code Snippets
Community Discussions
Trending Discussions on openintro
QUESTION
I am trying to create a linear regression model from openintro::babies
that predicts a baby's birthweight from all other variables in the data except case
.
I have to following code:
...ANSWER
Answered 2021-May-19 at 12:56Your code is correct. You're getting the case column because of the augment(babies)
call, but if you replace it with augment(babies %>% select(-case))
you wont get that column. In other words, the regression model you're fitting does not take into acount the case
column].
QUESTION
I need to load the dataframe teacher
from library "openintro".
Then, I need to provide descriptive statistics, i.e. an appropriate numerical description for the variables degree
, fte
, years
, retirement
with some graphs.
What I understand from the task is that I need to check the base salary with every variable. so. I started to find an average salary for BA degrees and then for MA.
...ANSWER
Answered 2020-Nov-09 at 15:33There are several different ways to present what you want, here are some examples:
Make a boxplot of base ~ degree:
QUESTION
I would like to apply different linetype models on timeseries plot. Here is a reproducible example using a structure similar to my data/code. Let's say I want solid line for woman and dotted line for men.
...ANSWER
Answered 2018-Apr-25 at 09:16Try
QUESTION
I am trying to visualize two parallel planes in a 3D plot with the plotly package (for those that have access to Datacamp, it is this exercise: https://campus.datacamp.com/courses/multiple-and-logistic-regression/multiple-regression?ex=9)
At some point in the construction of this graph, you need to create a matrix to fit the planes that match the categorical variable (plane_new = condition is new, plane_used = condition is used). The problem is, that the two datasets that I used as input (corresponding to the two levels of condition), have different number of observations. I can't seem to figure out how I can get these matrices to be comparable, so that the planes are correctly fit as geometrical objects in the figure.
I hope an R-wizard can help me out ;). Here's my code:
...ANSWER
Answered 2017-Dec-28 at 11:55No code wizard here but asked for the same thing:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install openintro
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page