Print Coefficients' Matrices
Usage
print.coefmat(x, digits=max(3, .Options$digits - 2),
signif.stars = .Options$show.signif.stars,
dig.tst = max(1, min(5, digits - 1)),
cs.ind = 1:k, tst.ind = k + 1, zap.ind = integer(0),
has.Pvalue = d[2] >= 4 && substr(colnames(x)[d[2]],1,3) == "Pr(",
...)
Arguments
x
|
a numeric matrix like object, to be printed.
|
digits
|
number of digits to be used for most numbers.
|
signif.stars
|
logical; if TRUE , P-values are additionally
encoded visually as ``significance stars'' in order to help scanning of
long coefficient tables. It defaults to the show.signif.stars
slot of options(.) .
|
dig.tst
|
number of significant digits for the test statistics,
see tst.ind .
|
cs.ind
|
indices (integer) of column numbers which are (like)
coefficients and standard errors to be formatted together.
|
tst.ind
|
indices (integer) of column numbers for test statistics.
|
zap.ind
|
indices (integer) of column numbers which should be
formatted by zapsmall(.) , i.e., by ``zapping'' values
close to 0.
|
has.Pvalue
|
logical; if TRUE , the last column of x
is formatted by format.pval as P values.
|
...
|
Further arguments for print(..) .
|
Description
Utility function to be used in ``higher level'' print
methods, such as print.summary.lm
and
print.summary.glm
. The goal is to provide a flexible
interface with smart defaults such that often, only x
needs to
be specified.Details
Despite its name, this is not (yet) a method for the generic
print
function, because there is no class
"coefmat"
.Value
Invisibly returns its argument, x
.Author(s)
Martin MaechlerSee Also
print.pval
, print.summary.lm
,
format
.Examples
cmat <- cbind(Estimate = rnorm(3, 10), Std.Err = sqrt(rchisq(3, 12)))
cmat <- cbind(cmat, z.val = cmat[,1]/cmat[,2])
cmat <- cbind(cmat, P.val = 2*pnorm(-cmat[,3]))
print.coefmat(cmat)
print.coefmat(cmat, digits=2, has.P = TRUE)