FitExp | R Documentation |
Estimates parameters for exponential event times subject to non-informative
right censoring. The exponential distribution is parameterized in terms
of the rate \lambda
:
f(t) = \lambda e^{-\lambda t}, t>0
FitExp(
data,
sig = 0.05,
status_name = "status",
tau = NULL,
time_name = "time"
)
data |
Data.frame. |
sig |
Significance level, for CIs. |
status_name |
Name of the status indicator, 1 if observed, 0 if censored. |
tau |
Optional truncation times for calculating RMSTs. |
time_name |
Name of column containing the time to event. |
An object of class fit
containing the following:
The estimated model parameters.
The observed information matrix.
The fitted mean, median, and variance of the time to event distribution.
The estimated RMSTs, if tau was specified.
# Generate exponential event time data with 20% censoring.
data <- GenData(n = 1e3, dist = "exp", theta = c(2), p = 0.2)
# Estimate parameters.
fit <- FitParaSurv(data, dist = "exp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.