View source: R/big_pls_cox_gd_diagnostics.R
| gd_diagnostics | R Documentation |
Extract Diagnostics from a big_pls_cox_gd Model
gd_diagnostics(object)
object |
A model returned by |
A list with log-likelihood, step sizes, gradient norms.
library(bigmemory)
set.seed(1)
n <- 50
p <- 10
X <- bigmemory::as.big.matrix(matrix(rnorm(n * p), n, p))
time <- rexp(n, rate = 0.1)
status <- rbinom(n, 1, 0.7)
fit <- big_pls_cox_gd(X, time, status, ncomp = 3, max_iter = 200)
str(fit)
head(fit$scores)
gd_diagnostics(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.