View source: R/summary.msgps.R
summary.msgps | R Documentation |
This functions summarizes the "msgps" object.
## S3 method for class 'msgps' summary(object, digits=max(3, getOption("digits") - 3), num.result = 20, coef.result=100,...)
object |
Fitted |
digits |
The digits of the output. |
num.result |
The number of tuning parameter and the corresponding degrees of freedom displayed in this code. |
coef.result |
If the coef.result exceeds the number of variables, the result of coefficient is not described in this code. |
... |
Other parameters on summary |
df |
The degrees of freedom for each tuning parameter. |
tuning.max |
Maximum value of tuning parameter. |
ms.coef |
The coefficient selected by each model selection criterion. |
ms.tuning |
The values of tuning parameter of models selected by each model selection criterion. |
ms.df |
The degerees of freedom selected of models each model selection criterion. |
Kei Hirose
mail@keihirose.com
#data X <- matrix(rnorm(100*8),100,8) beta0 <- c(3,1.5,0,0,2,0,0,0) epsilon <- rnorm(100,sd=3) y <- X %*% beta0 + epsilon y <- c(y) #fit fit <- msgps(X,y) summary(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.