Learn R Programming

cents (version 0.1-41)

scenNID: mle estimation of singly-left-censored data using AS 138

Description

mle estimation of mean and standard deviation

Usage

scenNID(y, n, cz, type="L")

Arguments

y
fully observed values, less than n if there is censoring
n
sample size
cz
detection level
type
only left censoring at present

Value

mle estimates of mean and sd

References

M. S. Wolynetz (1979). Algorithm AS 138: Maximum Likelihood Estimation from Confined and Censored Normal Data. Journal of the Royal Statistical Society. Series C (Applied Statistics), Vol. 28, No. 2, pp. 185-195

Examples

Run this code
n <- 50
cy <- (-1)
z <- rnorm(n)
ind <- z > cy
y <- z[ind]
scenNID(y, n, cy)

Run the code above in your browser using DataLab