FitCalibNpmle: Fitting Nonparametric Calibration Models

Description Usage Arguments Value See Also Examples

View source: R/OrdinaryCalibration.R

Description

Fits a Weibull calibration model for time-to-exposure from interval-censored data. The exposure is a binary covariate measured in intermittent times.

Usage

1
FitCalibNpmle(w, w.res)

Arguments

w

A matrix of time points when measurements on the binary covariate were obtained.

w.res

A matrix of measurement results of the binary covariate. It corresponds to the time points in w

Value

The result of NPMLE model fitting for interval-censored data, as obtained by icenReg::ic_np

See Also

ic_np

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Simulate data set
sim.data <- ICcalib:::SimCoxIntervalCensSingle(n.sample = 200, lambda = 0.1, 
                                               alpha = 0.25, beta0 = log(0.5), 
                                               mu = 0.2, n.points = 2, 
                                               weib.shape = 1, weib.scale = 2)
# Calcualte the NPMLE for a nonparametric calibration model for the covariate 
# starting-time distribution
npmle.fit <- ICcalib::FitCalibNpmle(w = sim.data$w, w.res = sim.data$w.res)
# Plot the estimated survival function
plot(npmle.fit)

ICcalib documentation built on Jan. 20, 2018, 9:52 a.m.