Learn R Programming

NADA2 (version 2.0.1)

cohn: Calculate Cohn Numbers

Description

Computes the A, B, C, P values used in probability plotting for censored data.

Usage

cohn(obs, censored, na.action = getOption("na.action"))

Value

An object of class "cohn" containing the Cohn statistics.

Arguments

obs

A numeric vector of observations.

censored

A logical vector indicating which observations are censored.

na.action

Function to handle missing values (default is getOption("na.action")).

Examples

Run this code

obs <- c(1, 2, 3, 4, 5, 6, 7)
cens <- c(TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE)
NADA2:::cohn(obs, cens)

Run the code above in your browser using DataLab