statmanrobin / stat2data Goto Github PK
View Code? Open in Web Editor NEWDatasets for the Stat2 Textbook
Datasets for the Stat2 Textbook
--- output: github_document --- <!-- README.md is generated from README.Rmd. Please edit that file --> ```{r, echo = FALSE} knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" ) ``` # Stat2Data The goal of Stat2Data is to provide datasets found in the second edition of Stat2: Modeling with Regression and ANOVA. The package also has data sets from the first edition and some functions for producing diagnostic plots described in the text. ## Installation You can install Stat2Data from github with: ```{r gh-installation, eval = FALSE} # install.packages("devtools") devtools::install_github("statmanrobin/Stat2Data") ```
The function emplogitplot2
only works if the categorical variable you are providing is formatted as a factor. If not, you get the opaque error message
Error in eval(predvars, data, env) : object 'Logit' not found
For example, if we take the MedGPA
data used in the documentation and transform Sex
back into a character variable,
MedGPA <- MedGPA %>%
mutate(Sex = as.character(Sex))
Then running
emplogitplot2(Acceptance~GPA+Sex,data=MedGPA)
returns
Error in eval(predvars, data, env) : object 'Logit' not found
An error message like No factor variable found, please ensure your categorical variable is of the type factor
would be much easier to interpret.
I run into this every semester and always forget to submit an issue! The documentation for the RailsTrails
dataset says the Distance
to the nearest trail entrance is in feet, but the measurements are clearly in miles. Either the documentation or the data should be updated.
Perhaps it is late and I am not seeing things carefully but it seems like the Temp
variable in the Leukamia
dataset seems to be off (seems to be missing decimal points) both on the website and the R package. Just wanted to bring it to your attention.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.