getDMEAN {DVHmetrics}R Documentation

DMEAN and other dose metrics

Description

Calculate DMEAN and other dose metrics from the (interpolated) differential DVH without relying on the values exported by the TPS.

Usage

getDMEAN(x, interp=c("linear", "spline", "ksmooth", "smoothSpl"),
         nodes=5001L)

## S3 method for class 'DVHs'
getDMEAN(x, interp=c("linear", "spline", "ksmooth", "smoothSpl"),
         nodes=5001L)

## S3 method for class 'DVHLst'
getDMEAN(x, interp=c("linear", "spline", "ksmooth", "smoothSpl"),
         nodes=5001L)

## S3 method for class 'DVHLstLst'
getDMEAN(x, interp=c("linear", "spline", "ksmooth", "smoothSpl"),
         nodes=5001L)

Arguments

x

One DVH (object of class DVHs, multiple DVHs from one patient with multiple structures (object of class DVHLst), or multiple DVHs from many patients, each with multiple structures (object of class DVHLstLst). See readDVH.

interp

character. Method of interpolation between DVH points: Linear interpolation applies to the cumulative DVH (recommended). Spline interpolation with splinefun, local polynomial regression with locpoly, and smoothing splines with smooth.spline apply to the differential DVH (not recommended).

nodes

numeric. Minimum number of nodes to use in interpolation. Number of available nodes is kept as is for NULL or if larger than nodes.

Value

A data frame with the following value(s).

patID

Patient ID.

structure

Structure name.

doseMin

Minimum dose.

doseMax

Maximum dose.

doseAvg

Mean dose.

doseMed

Median dose.

doseSD

Dose standard deviation.

doseMode

Dose mode.

doseAvgTPS

Mean dose as exported from the TPS (if available).

doseMedTPS

Median dose as exported from the TPS (if available).

doseMinTPS

Minimum dose as exported from the TPS (if available).

doseMaxTPS

Maximum dose as exported from the TPS (if available).

See Also

getMetric, convertDVHsmooth, approxfun, splinefun, smooth.spline, dpill, locpoly

Examples

getDMEAN(dataMZ[[1]], interp="linear")

[Package DVHmetrics version 0.4.2 Index]