Skip to contents

Show summary of transreg-object

Usage

# S3 method for transreg
print(x, ...)

Arguments

x

object of class transreg

...

(not applicable)

Value

Returns family of distributions, elastic net mixing parameter (\(alpha\)), number of samples (\(n\)), number of features (\(p\)), number of sources of co-data (\(k\)), chosen calibration method (exponential or isotonic), and chosen stacking method (standard or simultaneous).

Examples

#--- simulation ---
set.seed(1)
n <- 100; p <- 500
X <- matrix(rnorm(n=n*p),nrow=n,ncol=p)
beta <- rnorm(p)
prior <- beta + rnorm(p)
y <- X %*% beta

#--- print.transreg  ---
object <- transreg(y=y,X=X,prior=prior)
object
#> ----- transreg-object -----
#> family: 'gaussian'
#> alpha = 1 (lasso)
#> n = 100 (samples)
#> p = 500 (features)
#> k = 1 (sources of co-data)
#> calibration: 'iso'
#> stacking: 'sim' 
#> ---------------------------