Skip to content

Commit 6fe0da6

Browse files
Merge pull request #54 from rsquaredacademy/develop
Release candidate
2 parents b657c6c + 3f45370 commit 6fe0da6

File tree

10 files changed

+36
-89
lines changed

10 files changed

+36
-89
lines changed

.Rbuildignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
^appveyor\.yml$
1111
^codecov\.yml$
1212
^docs$
13-
^hex_blorr\.png$
13+
^hex_blorr\.png$
14+
^cran-comments\.md$

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Type: Package
33
Title: Tools for Developing Binary Logistic Regression Models
44
Version: 0.1.0
55
Authors@R: person("Aravind", "Hebbali", email = "hebbali.aravind@gmail.com", role = c("aut", "cre"))
6-
Description: Tools designed to make it easier for beginner/intermediate users to build and validate
6+
Description: Tools designed to make it easier for beginner and intermediate users to build and validate
77
binary logistic regression models. Includes bivariate analysis, comprehensive regression output,
88
model fit statistics, variable selection procedures, model validation techniques and a 'shiny'
99
app for interactive model building.

NEWS.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
# blorr 0.1.0
22

3-
Initial release
4-
5-
6-
3+
Initial release

README.Rmd

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ output, variable selection procedures, model validation techniques and a 'shiny'
2626

2727
### Installation
2828

29-
You can install blorr from github with:
30-
3129
```{r gh-installation, eval = FALSE}
30+
# Install blorr from CRAN
31+
install.packages("blorr")
32+
33+
# Or the development version from GitHub
3234
# install.packages("devtools")
3335
devtools::install_github("rsquaredacademy/blorr")
3436
```
@@ -39,12 +41,7 @@ Use `blr_launch_app()` to explore the package using a shiny app.
3941

4042
## Vignettes
4143

42-
- [Bivariate Analysis](https://blorr.rsquaredacademy.com/bivariate_analysis.html)
43-
- [Model Fit Statistics](https://blorr.rsquaredacademy.com/intro.html)
44-
- [Model Validation](https://blorr.rsquaredacademy.com/model_validation.html)
45-
- [Variable Selection](https://blorr.rsquaredacademy.com/variable_selection.html)
46-
- [Residual Diagnostics](https://blorr.rsquaredacademy.com/residual_diagnostics.html)
47-
44+
- [A Short Introduction to the blorr Package](https://blorr.rsquaredacademy.com/articles/introduction.html)
4845

4946
### Consistent Prefix
5047

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ Tools designed to make it easier for users, particularly beginner/intermediate R
1111

1212
### Installation
1313

14-
You can install blorr from github with:
15-
1614
``` r
15+
# Install blorr from CRAN
16+
install.packages("blorr")
17+
18+
# Or the development version from GitHub
1719
# install.packages("devtools")
1820
devtools::install_github("rsquaredacademy/blorr")
1921
```
@@ -25,11 +27,7 @@ Use `blr_launch_app()` to explore the package using a shiny app.
2527
Vignettes
2628
---------
2729

28-
- [Bivariate Analysis](https://blorr.rsquaredacademy.com/bivariate_analysis.html)
29-
- [Model Fit Statistics](https://blorr.rsquaredacademy.com/intro.html)
30-
- [Model Validation](https://blorr.rsquaredacademy.com/model_validation.html)
31-
- [Variable Selection](https://blorr.rsquaredacademy.com/variable_selection.html)
32-
- [Residual Diagnostics](https://blorr.rsquaredacademy.com/residual_diagnostics.html)
30+
- [A Short Introduction to the blorr Package](https://blorr.rsquaredacademy.com/articles/introduction.html)
3331

3432
### Consistent Prefix
3533

cran-comments.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Test environments
2+
* local Windows 10, R 3.5.0
3+
* ubuntu 14.04 (on travis-ci), R 3.4.4, R 3.5.0, R-devel
4+
* win-builder (devel and release)
5+
6+
## R CMD check results
7+
8+
0 errors | 0 warnings | 1 note
9+
10+
* This is a new release.

docs/LICENSE.html

Lines changed: 1 addition & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/authors.html

Lines changed: 1 addition & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 2 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/introduction.Rmd

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ knitr::opts_chunk$set(
1515
)
1616
```
1717

18-
### Introduction
18+
## Introduction
1919

2020
The blorr package offers tools for building and validating binary logistic regression models. It
2121
is most suitable for beginner/intermediate R users and those who teach statistics using R. The API
2222
is very simple and most of the functions take either a `data.frame`/`tibble` or a `model` as input. **blorr** use
2323
consistent prefix **blr_** for easy tab completion.
2424

25-
## Installation
25+
### Installation
2626

2727
You can install **blorr** using:
2828

@@ -42,7 +42,7 @@ library(blorr)
4242
library(magrittr)
4343
```
4444

45-
### Data
45+
## Data
4646

4747
To demonstrate the features of blorr, we will use the bank marketing data set.
4848
The data is related with direct marketing campaigns of a Portuguese banking
@@ -52,7 +52,7 @@ product (bank term deposit) would be ('yes') or not ('no') subscribed. It
5252
contains a random sample (~4k) of the original data set which can be found
5353
at https://archive.ics.uci.edu/ml/datasets/bank+marketing.
5454

55-
### Bivariate Analysis
55+
## Bivariate Analysis
5656

5757
Let us begin with careful bivariate analysis of each possible variable and the
5858
outcome variable. We will use information value and likelihood ratio chi square
@@ -102,7 +102,7 @@ blr_woe_iv_stats(bank_marketing, y, job, marital, education)
102102
`blr_woe_iv()` and `blr_woe_iv_stats()` are currently avialable for categorical
103103
predictors only.
104104

105-
### Stepwise Selection
105+
## Stepwise Selection
106106

107107
For the initial/ first cut model, all the independent variables are put into
108108
the model. Our goal is to include a limited number of independent variables
@@ -133,6 +133,8 @@ model %>%
133133
plot()
134134
```
135135

136+
## Regression Output
137+
136138
### Model
137139

138140
We can use bivariate analysis and stepwise selection procedure to shortlist
@@ -146,8 +148,6 @@ model <- glm(y ~ age + duration + previous + housing + default +
146148
family = binomial(link = 'logit'))
147149
```
148150

149-
### Regression Output
150-
151151
Use `blr_regress()` to generate comprehensive regression output. It accepts
152152
either of the following
153153

@@ -175,7 +175,7 @@ blr_regress(y ~ age + duration + previous + housing + default +
175175
loan + poutcome + job + marital, data = bank_marketing)
176176
```
177177

178-
### Model Fit Statistics
178+
## Model Fit Statistics
179179

180180
Model fit statistics are available to assess how well the model fits the data
181181
and to compare two different models.The output includes likelihood ratio test,

0 commit comments

Comments
 (0)