Learn R Programming

transreg (version 1.0.5)

print.transreg: Print transreg-object

Description

Show summary of transreg-object

Usage

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

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).

Arguments

x

object of class transreg

...

(not applicable)

Examples

Run this code
#--- 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

Run the code above in your browser using DataLab