Usage
tuning.zipath(formula, data, weights, subset, na.action, offset, standardize=TRUE,
family = c("poisson", "negbin", "geometric"), penalty = c("enet", "mnet", "snet"),
lambdaCountRatio = .0001, lambdaZeroRatio = c(.1, .01, .001),
maxit.theta=1, gamma.count=3, gamma.zero=3, ...)
Arguments
formula
symbolic description of the model, see details.
data
argument controlling formula processing
via model.frame
. weights
optional numeric vector of weights. If standardize=TRUE
, weights are renormalized to weights/sum(weights). If standardize=FALSE
, weights are kept as original input
na.action
how to deal with missing data
offset
Not implemented yet
standardize
logical value, should variables be standardized?
penalty
penalty considered as one of enet, mnet, snet
.
lambdaCountRatio, lambdaZeroRatio
Smallest value for lambda.count
and lambda.zero
, respectively, as a fraction of
lambda.max
, the (data derived) entry value (i.e. the smallest
value for which all coefficients are zero except the intercep
maxit.theta
For family="negbin", the maximum iteration allowed for estimating scale parameter theta. Note, the default value 1 is for computing speed purposes, and is typically too small and less desirable in real data analysis
gamma.count
The tuning parameter of the snet
or mnet
penalty for the count part of model.
gamma.zero
The tuning parameter of the snet
or mnet
penalty for the zero part of model.
...
Other arguments passing to zipath