Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
Package: gamlr
Title: Gamma Lasso Regression
Version: 1.13-8
Author: Matt Taddy <mataddy@gmail.com>
Maintainer: Matt Taddy <mataddy@gmail.com>
Authors@R: person(given = "Matt",
family = "Taddy",
role = c("aut", "cre"),
email = "mataddy@gmail.com")
Depends: R (>= 2.15), Matrix, methods, graphics, stats
Suggests: parallel
Description: The gamma lasso algorithm provides regularization paths corresponding to a range of non-convex cost functions between L0 and L1 norms. As much as possible, usage for this package is analogous to that for the glmnet package (which does the same thing for penalization between L1 and L2 norms). For details see: Taddy (2017 JCGS), 'One-Step Estimator Paths for Concave Regularization', <arXiv:1308.5623>.
Description: The gamma lasso algorithm provides regularization paths corresponding to a range of non-convex cost functions between L0 and L1 norms. As much as possible, usage for this package is analogous to that for the glmnet package (which does the same thing for penalization between L1 and L2 norms). For details see: Taddy (2017 JCGS), 'One-Step Estimator Paths for Concave Regularization', <doi:10.48550/arXiv.1308.5623>.
License: GPL-3
URL: https://github.com/TaddyLab/gamlr
BugReports: https://github.com/TaddyLab/gamlr/issues

4 changes: 2 additions & 2 deletions man/naref.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ naref(x, impute=FALSE, pzero=0.5)
\item{impute}{ Logical, whether to impute missing values in numeric columns.}
\item{pzero}{ If \code{impute==TRUE}, then if more than \code{pzero} of the values in a column are zero do zero imputation, else do mean imputation.}
}
\details{ For every \code{factor} or \code{character} column in \code{x}, \code{naref} sets \code{NA} as the reference level for a \code{factor} variable. Columns coded as \code{character} class are first converted to factors via \R{factor(x)}. If \code{impute=TRUE} then the numeric columns are converted to two columns, one appended \code{.x} that contains imputed values and another appended \code{.miss} which is a binary variable indicating whether the original value was missing. Numeric columns are returned without change if \code{impute=FALSE} or if they do not contain any missing values.
\details{ For every \code{factor} or \code{character} column in \code{x}, \code{naref} sets \code{NA} as the reference level for a \code{factor} variable. Columns coded as \code{character} class are first converted to factors via base R \code{factor(x)}. If \code{impute=TRUE} then the numeric columns are converted to two columns, one appended \code{.x} that contains imputed values and another appended \code{.miss} which is a binary variable indicating whether the original value was missing. Numeric columns are returned without change if \code{impute=FALSE} or if they do not contain any missing values.
}
\value{
A data frame where the factor and character columns have been converted to factors with reference level \code{NA}, and if \code{impute=TRUE} the missing values in numeric columns have been imputed and a flag for missingness has been added. See details.
A data frame where the factor and character columns have been converted to factors with reference level \code{NA}, and if \code{impute=TRUE} the missing values in numeric columns have been imputed and a flag for missingness has been added. See details.
}
\author{
Matt Taddy \email{mataddy@gmail.com}
Expand Down