Learn R Programming

sparsereg (version 1.0)

print.sparsereg: A summary of the estimated posterior mode of each parameter.

Description

The funciton prints a summary of the estimated posterior mode of each parameter.

Usage

## S3 method for class 'sparsereg':
print(x,... )

Arguments

x
Object of class sparsereg.
...
Additional arguments to pass to print. None supported in this version.

Details

Uses the summary function from the package coda to return a summary of the posterior mode of a sparsereg object. The argument stage is required when printing output from a type 2 tobit. When printing output from a sparsereg object, the argument is ignored.

References

Ratkovic, Marc and Tingley, Dustin. 2015. "Sparse Estimation with Uncertainty: Subgroup Analysis in Large Dimensional Design." Working paper.

See Also

sparsereg, plot.sparsereg, summary.sparsereg, volcanoplot, difference

Examples

Run this code
set.seed(1)
 n<-500
 k<-100
 Sigma<-diag(k)
 Sigma[Sigma==0]<-.5
 X<-mvrnorm(n,mu=rep(0,k),Sigma=Sigma)
 y.true<-3+X[,2]*2+X[,3]*(-3)
 y<-y.true+rnorm(n)



##Fit a linear model with five covariates.
 s1<-sparsereg(y,X[,1:5])
 print(s1)

Run the code above in your browser using DataLab