DVH.baseStat: Function for calculating the mean and median dvh with related...

Description Usage Arguments Value Examples

View source: R/dvh_mod.R

Description

This function calculates the mean dvh from a dvhmatrix class object. The mean dvh is calculated with its confidence interval that is given by a bootstrapped dvh series from the dvh given in the dvh object.

Usage

1
DVH.baseStat(dvh, C.I.width = 0.95, n.boot = 2000)

Arguments

dvh

A dvhmatrix class object

C.I.width

The width of confidence interval

n.boot

The number of bootstrapped dvhs for computing the quantile in C.I. calculation

Value

A dvhmatrix object where 7 columns: Dose, mean DVH, low C.I. of mean DVH, high C.I. of mean DVH, median DVH, low C.I. of median DVH, high C.I. of median DVH.

Examples

1
2
3
4
5
6
## creates a dvhmatrix class object with 100 DVHs
a<-DVH.generate(dvh.number = 100, dvh.type = "cumulative", vol.distr = "relative")
b<-DVH.baseStat(dvh = a)
## plot the dvhmatrix object "b", showing both mean, 
## median DVH and corresponding confidence intarvals
plot(b)

robertogattabs/RadAgent documentation built on June 30, 2018, 12:02 a.m.