print.transreg {transreg}R Documentation

Print transreg-object

Description

Show summary of transreg-object

Usage

## S3 method for class '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


[Package transreg version 1.0.2 Index]