FitExp {Temporal} | R Documentation |
Exponential Distribution Parameter Estimation
Description
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
Usage
FitExp(
data,
sig = 0.05,
status_name = "status",
tau = NULL,
time_name = "time"
)
Arguments
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. |
Value
An object of class fit
containing the following:
- Parameters
The estimated model parameters.
- Information
The observed information matrix.
- Outcome
The fitted mean, median, and variance of the time to event distribution.
- RMST
The estimated RMSTs, if tau was specified.
Examples
# 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")
[Package Temporal version 0.3.0.1 Index]