pctCen: Calculate the percentage of values censored
Description
pctCen is a simple, but convenient, function that calculates
the percentage of censored values.
Usage
pctCen(obs, censored, na.action)
Arguments
obs
A numeric vector of observations. This includes both censored
and uncensored observations.
censored
A logical vector indicating TRUE where an observation in v is
censored (a less-than value) and FALSE otherwise.
na.action
A function which indicates what should happen
when the data contain NAs. The default is set by
the na.action setting of options, and is
na.omit if that is unset.
Another possible value is NULL, no action.
Value
pctCen returns a single numeric value representing
the percentage of values censored in the ``obs" vector.