Giter Site home page Giter Site logo

stat2data's Introduction

---
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")
```

stat2data's People

Contributors

statmanrobin avatar

Stargazers

 avatar Luis avatar Alvan Caleb Arulandu avatar Mark Andrews avatar

Watchers

James Cloos avatar  avatar

stat2data's Issues

Better error messages for `emplogitplot2`

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.

Distance in RailsTrails is in miles

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.

Leukamia

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.