sens.cvrs: Get subgroup of sensitive patiens according to the "cvrs"...

View source: R/internal.R

sens.cvrsR Documentation

Get subgroup of sensitive patiens according to the "cvrs" method.

Description

For one vector of binary responses, get sensitive patients by risk scores and k-means. In the testing subsets, the risk scores are computed based on the treatment-covariate interaction effects from the training subsets. The risk scores are divided into 2 clusters by a k-means clustering (within each fold).

Usage

sens.cvrs(patients, covar, y, seed)

Arguments

patients

- a data frame with patients inormation covar - a data frame with covariates y - a vector of responses seed - a seed for random number generator

Value

A list of 4 : psens - sensitivity of identifying the sensitive group, one value per simulation run pspec - specificity of identifying the sensitive group, one value per simulation run sens.pred - predicted sensitivity status (rows = patienst, columns = simulations) cvrs - a matrix of the risk scores (rows = patients, columns = simulations).

Author(s)

Svetlana Cherlin, James Wason


svetlanache/rapids documentation built on Sept. 15, 2023, 7 a.m.