Skip to content

Commit

Permalink
Version 3.2-0
Browse files Browse the repository at this point in the history
  • Loading branch information
pbreheny committed Sep 27, 2018
1 parent aca9d9b commit 768056f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: grpreg
Title: Regularization Paths for Regression Models with Grouped Covariates
Version: 3.2-000
Date: 2018-06-15
Version: 3.2-0
Date: 2018-09-27
Authors@R: c(
person("Patrick", "Breheny", role=c("aut","cre"), email="[email protected]", comment=c(ORCID="000-0002-0650-1119")),
person("Yaohui", "Zeng", role="ctb"))
Expand Down
5 changes: 3 additions & 2 deletions man/Birthwt.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ data(Birthwt)
category.}
}
}
\source{\code{MASS}. \code{R} package. Available at
\code{http://cran.r-project.org}.}
\source{\code{MASS}. \code{R} package.
\url{https://cran.r-project.org/package=MASS}
}
\references{
\itemize{
\item Venables, W. N. and Ripley, B. D. (2002) \emph{Modern Applied
Expand Down
10 changes: 5 additions & 5 deletions man/predict.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ fit <- grpreg(X, y, group, penalty="grLasso", family="binomial")

# Coef and predict methods
coef(fit, lambda=.001)
predict(fit, X, type="link", lambda=.001)
predict(fit, X, type="response", lambda=.001)
predict(fit, X, type="class", lambda=.001)
predict(fit, X, type="link", lambda=.07)[1:10]
predict(fit, X, type="response", lambda=.07)[1:10]
predict(fit, X, type="class", lambda=.01)[1:15]
predict(fit, type="vars", lambda=.07)
predict(fit, type="groups", lambda=.07)
predict(fit, type="norm", lambda=.07)

# Coef and predict methods for cross-validation
cvfit <- cv.grpreg(X, y, group, family="binomial", penalty="grMCP")
coef(cvfit)
predict(cvfit, X)
predict(cvfit, X, type="response")
predict(cvfit, X)[1:10]
predict(cvfit, X, type="response")[1:10]
predict(cvfit, type="groups")
}
2 changes: 1 addition & 1 deletion man/select-grpreg.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ select(obj,\dots)
freedom, and \eqn{n}{n} is the sample size:

\deqn{AIC = L + 2\nu}{AIC = L + 2*df}
\deqn{BIC = L + log(n)\nu}{BIC = L + log(n)*df}
\deqn{BIC = L + \log(n)\nu}{BIC = L + log(n)*df}
\deqn{GCV = \frac{L}{(1-\nu/n)^2}}{GCV= L/((1-df/n)^2)}
\deqn{AICc = AIC + 2\frac{\nu(\nu+1)}{n-\nu-1}}{AICc = AIC + 2*df*(df+1)/(n-df-1)}
\deqn{EBIC = BIC + 2 \log{p \choose \nu}}{EBIC = BIC + 2*log(p choose df)}
Expand Down

0 comments on commit 768056f

Please sign in to comment.