test_stop_cond: Check tolerance for stopping criterion

View source: R/operation_on_susiF_obj.R

test_stop_cond.EBmvFRR Documentation

Check tolerance for stopping criterion

Description

Check tolerance for stopping criterion

Usage

## S3 method for class 'EBmvFR'
test_stop_cond(obj, check, cal_obj, Y, X, D, C, indx_lst, ...)

test_stop_cond(obj, check, cal_obj, Y, X, D, C, indx_lst, ...)

## S3 method for class 'susiF'
test_stop_cond(obj, check, cal_obj, Y, X, D, C, indx_lst, ...)

Arguments

obj

a susiF object defined by init_susiF_obj function

check

numeric, dynamic value for testing outing of th while loop

cal_obj

logical, if set to TRUE compute ELBO

X

matrix of covariates

D

matrix of wavelet D coefficients from the original input data (Y)

C

vector of wavelet scaling coefficient from the original input data (Y)

indx_lst

list generated by gen_wavelet_indx for the given level of resolution

Value

a matrix of size N by size J of partial residuals


stephenslab/susiF.alpha documentation built on March 1, 2025, 4:28 p.m.