Skip to contents

Biomarker Response Association

Usage

biomarkerresponse(
  data,
  biomarker,
  response,
  responseType = "categorical",
  plotType = "boxplot",
  showThreshold = TRUE,
  thresholdValue,
  thresholdMethod = "median",
  addTrendLine = TRUE,
  trendMethod = "loess",
  performTests = TRUE,
  groupVariable,
  showCorrelation = TRUE,
  logTransform = FALSE,
  outlierHandling = "highlight",
  confidenceLevel = "0.95"
)

Arguments

data

The data as a data frame.

biomarker

Continuous biomarker measurement (e.g., expression level, concentration).

response

Treatment response variable (binary, categorical, or continuous).

responseType

Type of response variable for appropriate analysis and visualization.

plotType

Primary visualization method for biomarker-response relationship.

showThreshold

Display threshold lines for biomarker positivity/negativity.

thresholdValue

Threshold value for biomarker positivity (if known).

thresholdMethod

Method for determining biomarker threshold.

addTrendLine

Add fitted trend line for continuous responses.

trendMethod

Method for fitting trend line.

performTests

Perform appropriate statistical tests for biomarker-response association.

groupVariable

Optional grouping variable (e.g., treatment arm, disease stage).

showCorrelation

Display correlation coefficients and tests.

logTransform

Apply log transformation to biomarker values.

outlierHandling

Method for handling outlier values.

confidenceLevel

Confidence level for intervals and tests.

Value

A results object containing:

results$todoa html
results$plotan image
results$correlationa table
results$thresholda table
results$groupComparisona table
results$statisticalTestsa table

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$correlation$asDF

as.data.frame(results$correlation)