Description Usage Arguments Value Author(s) References See Also Examples
implements the adaptive sparse linear model using Figueiredo's EM algorithm for adaptive sparsity (Jeffreys prior)
1 2 3 4 5 |
formula |
an object of class “formula” (or one that can be coerced to that class): a symbolic description of the model to be fitted.
See |
data |
an optional data frame, list or environment containing the variables in the model. |
na.action |
action to use when data contains NAs. Options include na.omit, na.exclude, na.fail |
x |
design matrix |
y |
vector of observations |
... |
further arguments |
object |
an object of class “aslm”. |
aslm
returns an object of class c("aslm", "lm")
.
An object of class “aslm
” is a list containing at least the following components:
coefficients |
a named vector of coefficients |
residuals |
the residuals, that is response minus fitted values. |
fitted.values |
the fitted mean values |
rank |
the numeric rnak of the fitted linear model |
df |
the residual degrees of freedom |
call |
the matched call |
terms |
the terms object used |
sigma |
getSparseModel
returns an object of class "lm"
that is a model consisting of only the sparse nonzero variables from the original model.
Kristen Zygmunt, Eleanor Wong, Tom Fletcher
Figueiredo, M.A.T.; , “Adaptive sparseness for supervised learning”, Pattern Analysis and Machine Intelligence, IEEE Transactions on , vol.25, no.9, pp. 1150- 1159, Sept. 2003
summary.aslm
, logLik.aslm
, print.aslm
1 2 3 4 5 | s = aslm(Infant.Mortality~.,data=swiss)
m = getSparseModel(s)
summary(s)
coef(m)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.