print.summary.lm.spike: Print method for spikeslab objects.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/lm.spike.R

Description

Print a spikeslab object.

Usage

1
2
3
4
## S3 method for class 'summary.lm.spike'
print(x, ...)
## S3 method for class 'summary.logit.spike'
print(x, ...)

Arguments

x

An object of class summary.lm.spike.

...

Additional arguments passed to print.default.

Value

This function is called for its side effect, which is to print the spikeslab object to the screen.

Author(s)

Steven L. Scott

See Also

lm.spike summary.lm.spike

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  n <- 100
  p <- 10
  ngood <- 3
  niter <- 1000
  sigma <- 2

  x <- cbind(1, matrix(rnorm(n * (p-1)), nrow=n))
  beta <- c(rnorm(ngood), rep(0, p - ngood))
  y <- rnorm(n, x %*% beta, sigma)
  x <- x[,-1]
  model <- lm.spike(y ~ x, niter=niter)
  summary(model)

BoomSpikeSlab documentation built on May 29, 2017, 2:16 p.m.

Search within the BoomSpikeSlab package
Search all R packages, documentation and source code