Learn R Programming

LLMing (version 1.1.0)

G_thres: Thresholding of pCOS dataframe

Description

Converts each column of a pCOS score matrix into binary indicators

Usage

G_thres(pCOS_mat, theta)

Value

A matrix of 0s and 1s of which cells meet the threshold

Arguments

pCOS_mat

Dataframe of pCOS values

theta

Numeric threshold

Examples

Run this code
z_dat <- data.frame("A" = rnorm(500,0,1), "B" = rnorm(500,0,1), "C" = rnorm(500,0,1))
snn <- sim_SNN(z_dat, 10, 5)
vec_snn <- vector_SNN(z_dat, snn)
pCOSdat <- pCOS(z_dat, vec_snn)
G <- G_thres(pCOSdat, theta = 0.1)

Run the code above in your browser using DataLab