Skip to content

Commit

Permalink
Merge pull request #73 from rsquaredacademy/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
aravindhebbali authored Mar 29, 2018
2 parents 4d0d50d + 6fa57b5 commit 753db80
Show file tree
Hide file tree
Showing 52 changed files with 693 additions and 205 deletions.
4 changes: 0 additions & 4 deletions R/ols-all-possible-regression.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,12 @@
#' @family variable selection procedures
#'
#' @examples
#' \dontrun{
#' model <- lm(mpg ~ disp + hp, data = mtcars)
#' k <- ols_step_all_possible(model)
#' k
#' }
#'
#' \dontrun{
#' # plot
#' plot(k)
#' }
#'
#' @importFrom utils combn
#' @importFrom dplyr group_by summarise_all
Expand Down
4 changes: 0 additions & 4 deletions R/ols-bartlett-test.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,12 @@
#' @family heteroskedasticity tests
#'
#' @examples
#' \dontrun{
#' # using grouping variable
#' library(descriptr)
#' ols_test_bartlett(mtcarz, mpg, group_var = cyl)
#' }
#'
#' \dontrun{
#' # using variables
#' ols_test_bartlett(hsb, read, write)
#' }
#'
#' @importFrom rlang quo_is_null quos
#' @importFrom stats pchisq formula
Expand Down
4 changes: 0 additions & 4 deletions R/ols-best-subsets-regression.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,13 @@
#' @family variable selection procedures
#'
#' @examples
#' \dontrun{
#' model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars)
#' ols_step_best_subset(model)
#' }
#'
#' \dontrun{
#' # plot
#' model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars)
#' k <- ols_step_best_subset(model)
#' plot(k)
#' }
#'
#' @export
#'
Expand Down
2 changes: 0 additions & 2 deletions R/ols-dfbetas-panel.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@
#' \code{ols_dfbetas_panel()} has been deprecated. Instead use \code{ols_plot_dfbetas()}.
#'
#' @examples
#' \dontrun{
#' model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars)
#' ols_plot_dfbetas(model)
#' }
#'
#' @seealso [ols_plot_dffits()]
#'
Expand Down
2 changes: 0 additions & 2 deletions R/ols-diagnostics-panel.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
#' \code{ols_diagnostic_panel()} has been deprecated. Instead use \code{ols_plot_diagnostics()}.
#'
#' @examples
#' \dontrun{
#' model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars)
#' ols_plot_diagnostics(model)
#' }
#'
#' @importFrom ggplot2 xlim stat_qq geom_histogram geom_line theme element_blank
#' @importFrom stats quantile
Expand Down
4 changes: 0 additions & 4 deletions R/ols-stepaic-backward-regression.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,14 @@
#' \code{ols_stepaic_backward()} has been deprecated. Instead use \code{ols_step_backward_aic()}.
#'
#' @examples
#' \dontrun{
#' # stepwise backward regression
#' model <- lm(y ~ ., data = surgical)
#' ols_step_backward_aic(model)
#' }
#'
#' \dontrun{
#' # stepwise backward regression plot
#' model <- lm(y ~ ., data = surgical)
#' k <- ols_step_backward_aic(model)
#' plot(k)
#' }
#'
#' @importFrom ggplot2 geom_text
#' @importFrom rlang prepend
Expand Down
4 changes: 0 additions & 4 deletions R/ols-stepaic-both-regression.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,14 @@
#' \code{ols_stepaic_both()} has been deprecated. Instead use \code{ols_step_both_aic()}.
#'
#' @examples
#' \dontrun{
#' # stepwise regression
#' model <- lm(y ~ ., data = stepdata)
#' ols_step_both_aic(model)
#' }
#'
#' \dontrun{
#' # stepwise regression plot
#' model <- lm(y ~ ., data = stepdata)
#' k <- ols_step_both_aic(model)
#' plot(k)
#' }
#'
#' @family variable selection procedures
#'
Expand Down
4 changes: 0 additions & 4 deletions R/ols-stepaic-forward-regression.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,14 @@
#' \code{ols_stepaic_forward()} has been deprecated. Instead use \code{ols_step_forward_aic()}.
#'
#' @examples
#' \dontrun{
#' # stepwise forward regression
#' model <- lm(y ~ ., data = surgical)
#' ols_step_forward_aic(model)
#' }
#'
#' \dontrun{
#' # stepwise forward regression plot
#' model <- lm(y ~ ., data = surgical)
#' k <- ols_step_forward_aic(model)
#' plot(k)
#' }
#'
#' @importFrom dplyr desc
#'
Expand Down
4 changes: 0 additions & 4 deletions R/ols-stepwise-backward-regression.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,14 @@
#' \code{ols_step_backward()} has been deprecated. Instead use \code{ols_step_backward_p()}.
#'
#' @examples
#' \dontrun{
#' # stepwise backward regression
#' model <- lm(y ~ ., data = surgical)
#' ols_step_backward_p(model)
#' }
#'
#' \dontrun{
#' # stepwise backward regression plot
#' model <- lm(y ~ ., data = surgical)
#' k <- ols_step_backward_p(model)
#' plot(k)
#' }
#'
#' @family variable selection procedures
#'
Expand Down
4 changes: 0 additions & 4 deletions R/ols-stepwise-forward-regression.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,14 @@
#' \code{ols_step_forward()} has been deprecated. Instead use \code{ols_step_forward_p()}.
#'
#' @examples
#' \dontrun{
#' # stepwise forward regression
#' model <- lm(y ~ ., data = surgical)
#' ols_step_forward_p(model)
#' }
#'
#' \dontrun{
#' # stepwise forward regression plot
#' model <- lm(y ~ ., data = surgical)
#' k <- ols_step_forward_p(model)
#' plot(k)
#' }
#'
#' @importFrom stats qt
#'
Expand Down
4 changes: 0 additions & 4 deletions R/ols-stepwise-regression.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,14 @@
#' \code{ols_stepwise()} has been deprecated. Instead use \code{ols_step_both_p()}.
#'
#' @examples
#' \dontrun{
#' # stepwise regression
#' model <- lm(y ~ ., data = surgical)
#' ols_step_both_p(model)
#' }
#'
#' \dontrun{
#' # stepwise regression plot
#' model <- lm(y ~ ., data = surgical)
#' k <- ols_step_both_p(model)
#' plot(k)
#' }
#'
#' @family variable selection_procedures
#'
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added docs/reference/ols_plot_dfbetas-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 3 additions & 5 deletions docs/reference/ols_plot_dfbetas.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added docs/reference/ols_plot_diagnostics-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 3 additions & 5 deletions docs/reference/ols_plot_diagnostics.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added docs/reference/ols_step_all_possible-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 9 additions & 8 deletions docs/reference/ols_step_all_possible.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added docs/reference/ols_step_backward_aic-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 56 additions & 8 deletions docs/reference/ols_step_backward_aic.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added docs/reference/ols_step_backward_p-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 753db80

Please sign in to comment.