Learn R Programming

bigPLScox (version 0.8.1)

gd_diagnostics: Extract Diagnostics from a big_pls_cox_gd Model

Description

Extract Diagnostics from a big_pls_cox_gd Model

Usage

gd_diagnostics(object)

Value

A list with log-likelihood, step sizes, gradient norms.

Arguments

object

A model returned by big_pls_cox_gd().

Examples

Run this code
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)

Run the code above in your browser using DataLab