Skip to content

Commit

Permalink
solves #5
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindhebbali committed Jun 5, 2017
1 parent f887728 commit c58fcee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
15 changes: 8 additions & 7 deletions R/ols-best-subsets-regression.R
Expand Up @@ -15,14 +15,14 @@
#' \item{rsquare}{rsquare of the model}
#' \item{adjr}{adjusted rsquare of the model}
#' \item{predrsq}{predicted rsquare of the model}
#' \item{cp}{Mallow's Cp}
#' \item{aic}{Akaike Information Criteria}
#' \item{sbic}{Sawa Bayesian Information Criteria}
#' \item{sbc}{Schwarz Bayes Information Criteria}
#' \item{cp}{mallow's Cp}
#' \item{aic}{akaike information criteria}
#' \item{sbic}{sawa bayesian information criteria}
#' \item{sbc}{schwarz bayes information criteria}
#' \item{gmsep}{estimated MSE of prediction, assuming multivariate normality}
#' \item{jp}{final prediction error}
#' \item{pc}{Amemiya Prediction Criteria}
#' \item{sp}{Hocking's Sp}
#' \item{pc}{amemiya prediction criteria}
#' \item{sp}{hocking's Sp}
#'
#' @references Kutner, MH, Nachtscheim CJ, Neter J and Li W., 2004, Applied Linear Statistical Models (5th edition).
#' Chicago, IL., McGraw Hill/Irwin.
Expand Down Expand Up @@ -59,7 +59,8 @@ ols_best_subset.default <- function(model, ...) {
}

lc <- length(combs)
nam <- names(model$coefficients)[-1]
nam <- colnames(attr(model$terms, 'factors'))
# nam <- names(model$coefficients)[-1]
varnames <- names(model.frame(model))
predicts <- varnames[-1]
len_preds <- length(predicts)
Expand Down
12 changes: 6 additions & 6 deletions man/ols_best_subset.Rd

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

0 comments on commit c58fcee

Please sign in to comment.