censummary: Produces basic summary statistics on censored data

Description Usage Arguments Value Author(s) References Examples

Description

Produces basic, and hopefully useful, summary statistics on censored data.

Usage

1
    censummary(obs, censored, groups)

Arguments

obs

A numeric vector of observations.

censored

A logical vector indicating TRUE where an observation in x is censored (a less-than value) and FALSE otherwise.

groups

A factor vector used for grouping ‘obs’ into subsets.

Value

A censummary object.

Author(s)

R. Lopaka Lee <rclee@usgs.gov>

Dennis Helsel <dhelsel@practicalstats.com>

References

Helsel, Dennis R. (2005). Nondectects and Data Analysis; Statistics for censored environmental data. John Wiley and Sons, USA, NJ.

Examples

1
2
    data(DFe)
    with(DFe, censummary(Summer, SummerCen))

Example output

Loading required package: survival

Attaching package: 'NADA'

The following object is masked from 'package:stats':

    cor

all:
       n    n.cen  pct.cen      min      max 
 9.00000  6.00000 66.66667  3.00000 20.00000 

limits:
  limit n uncen   pexceed
1     3 2     2 0.5555556
2    10 4     1 0.1111111

NADA documentation built on March 22, 2020, 5:07 p.m.

Related to censummary in NADA...