print.APML0: Print a APML0 Object

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/print.APML0.R

Description

Print a summary of results along the path of lambda.

Usage

1
2
## S3 method for class 'APML0'
print(x, digits = 4, ...)

Arguments

x

fitted APML0 object

digits

significant digits in printout

...

additional print arguments

Details

The performed model is printed, followed by fit and fit0 (if any) from a fitted APML0 object.

Value

The data frame above is silently returned

Author(s)

Xiang Li, Shanghong Xie, Donglin Zeng and Yuanjia Wang
Maintainer: Xiang Li <spiritcoke@gmail.com>

See Also

APML0

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
###  Linear model  ###
set.seed(1213)
N=100;p=30;p1=5
x=matrix(rnorm(N*p),N,p)
beta=rnorm(p1)
xb=x[,1:p1]%*%beta
y=rnorm(N,xb)

fiti2=APML0(x,y,penalty="Lasso",nlambda=10,nfolds=10) # Lasso
fiti2

APML0 documentation built on March 26, 2020, 8:01 p.m.