filter_tce: Helper function to do basic filtering of the TCE matrix.

View source: R/inspre.R

filter_tceR Documentation

Helper function to do basic filtering of the TCE matrix.

Description

Large values of R, entries with a high SE, and row/columns with many nans can be removed.

Usage

filter_tce(R_tce, SE_tce, max_R = 2, max_SE = 1, max_nan_perc = 0.5)

Arguments

R_tce

Matrix or data.frame. Estimates of TCE.

SE_tce

Matrix or data.frame. Standard errors of the entries in R_tce.

max_R

Float. Set all entries where 'abs(R_tce) > max_R' to 'NA'.

max_SE

Float. Set all entries whwere 'SE > max_SE' tp 'NA'.

max_nan_perc

Float. Remove columns and rows that are more than 'max_nan_perc' NAs.


brielin/inspre documentation built on Dec. 3, 2023, 4:55 a.m.