Nothing
#========== Function to print basic summary of joint model ==========#
print.jmodelTM <- function (x, digits = max(4, getOption("digits") - 4), ...)
{
result = x
cat("Joint modeling fitting of longitudinal and survival data by ML\n")
cat("\nCoefficients:\n")
cat("\tLongitudinal Process\n")
print(round(result$coefficients$beta, digits))
cat("\tSurvival Process\n")
phis <- c(result$coefficients$phi, result$coefficients$alpha)
print(round(phis, digits))
cat("\nVariance Components:\n")
Bsigma <- result$coefficients$Bsigma
ncz <- if(length(Bsigma) == 1) 1 else nrow(Bsigma)
SD <- if (ncz == 1) sqrt(Bsigma) else sqrt(diag(Bsigma))
SD <- c(SD, result$coefficients$Ysigma)
if (ncz > 1) {
corr <- cov2cor(Bsigma)
corr[upper.tri(corr, TRUE)] <- 0
corr <- rbind(corr, rep(0, ncz))
tempMat <- round(cbind(SD, corr[ , - ncz]), digits)
tempMat <- apply(tempMat, 2, sprintf, fmt = "% .4f")
tempMat[tempMat == tempMat[1, 2]] <- ""
tempMat[1, -1] <- abbreviate(colnames(tempMat)[- 1], 6)
colnames(tempMat) <- c(colnames(tempMat)[1], rep("", ncz - 1))
Mat <- data.frame(tempMat, check.rows = FALSE, check.names = FALSE)
colnames(Mat) <- c("StdDev", "Corr", if (ncz > 2) rep(" ", ncz - 2) else NULL)
rownames(Mat) <- c(dimnames(Bsigma)[[1]], "Residual")
} else {
Mat <- data.frame("StdDev" = SD, row.names = c(names(Bsigma), "Residual"),
check.rows = FALSE, check.names = FALSE)
}
print(if(!is.numeric(Mat)) Mat else round(Mat, digits))
cat("\nLog-likelihood:", result$logLik, "\n")
cat("Number of Observations:", result$N, "\n")
cat("Number of Subjects:", result$n, "\n")
invisible(result)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.