Skip to contents

Tumor Growth Models

Usage

tumorgrowth(
  data,
  time,
  tumorSize,
  patientId,
  covariates = list(),
  growthModel = "gompertz",
  treatmentEffect,
  treatmentTime,
  modelApproach = "nlme",
  confidenceLevel = 95,
  modelSummary = TRUE,
  growthParameters = TRUE,
  growthCurves = TRUE,
  residualAnalysis = FALSE,
  treatmentAnalysis = FALSE,
  predictions = FALSE,
  doubleTime = TRUE,
  initialSize,
  maxSize,
  predictionTime = 30,
  mcmcSamples = 5000,
  plotWidth = 600,
  plotHeight = 450
)

Arguments

data

the data as a data frame

time

Time variable (days, weeks, months) from baseline

tumorSize

Tumor size measurement (volume, diameter, etc.)

patientId

Patient identifier for longitudinal data

covariates

Covariates affecting tumor growth

growthModel

Mathematical model for tumor growth kinetics

treatmentEffect

Variable indicating treatment status or type

treatmentTime

Time when treatment was initiated

modelApproach

Statistical approach for parameter estimation

confidenceLevel

Confidence level for parameter intervals

modelSummary

Display model parameter estimates and fit statistics

growthParameters

Show biological interpretation of growth parameters

growthCurves

Display individual and population growth curves

residualAnalysis

Perform residual diagnostics

treatmentAnalysis

Analyze treatment effects on growth parameters

predictions

Generate future growth predictions

doubleTime

Calculate tumor doubling time

initialSize

Initial tumor size (if not measured)

maxSize

Theoretical maximum size for logistic models

predictionTime

Time units ahead for growth predictions

mcmcSamples

Number of MCMC samples for Bayesian estimation

plotWidth

Width of the growth plots in pixels

plotHeight

Height of the growth plots in pixels

Value

A results object containing:

results$todoa html
results$summarya html
results$modelTablea table
results$growthParametersTablea table
results$doublingTimeTablea table
results$treatmentEffectTablea table
results$growthCurvesPlotan image
results$residualPlotan image
results$predictionPlotan image
results$fitStatisticsa table
results$clinicalInterpretationa html

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

results$modelTable$asDF

as.data.frame(results$modelTable)