1 | print.glh.rdc(x, round = 6, pround = round - 1, L = T, cov = T, ...)
|
x |
|
round |
|
pround |
|
L |
|
cov |
|
... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (x, round = 6, pround = round - 1, L = T, cov = T, ...)
{
rnd <- function(x, digits) {
if (is.numeric(x))
x <- round(x, digits = digits)
format(x)
}
for (ii in 1:length(x)) {
nn <- names(x)[[ii]]
tt <- x[[ii]]
ta <- tt$anova
tap <- array("", dim = dim(ta), dimnames = dimnames(ta))
cat("\n", nn, "\n", sep = "")
print(formatCoefmat(ta, digits = round, pdigits = pround),
quote = F, right = T)
cat("\n")
te <- tt$estimate
if (!is.null(zhead <- attr(tt, "heading")))
cat(zhead, "\n")
print(formatCoefmat(te, digits = round, pdigits = pround),
quote = F, right = T)
if (L == T) {
cat("\nL:\n")
print(tt$L)
if (dim(tt$L.full)[1] < dim(tt$L)[1]) {
cat("\nL (full rank):\n")
print(tt$L.full)
}
}
if (cov == T) {
cat("\nVar-Cov of estimates:\n")
print(tt$vcov)
cat("\nCorrelations:\n")
print(tt$vcor)
}
}
invisible(x)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.