FitWeibull {Temporal} | R Documentation |
Weibull Distribution Parameter Estimation
Description
Estimates parameters for Weibull event times subject to non-informative
right censoring. The Weibull distribution is parameterized in terms
of the shape \alpha
and rate \lambda
:
f(t) = \alpha\lambda^{\alpha}t^{\alpha-1}e^{-(\lambda t)^{\alpha}}, t>0
Usage
FitWeibull(
data,
init = list(),
sig = 0.05,
status_name = "status",
tau = NULL,
time_name = "time"
)
Arguments
data |
Data.frame. |
init |
List containing the initial value for the shape, |
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 shape
\alpha
and rate\lambda
.- Information
The observed information matrix.
- Outcome
The fitted mean, median, and variance.
- RMST
The estimated RMSTs, if tau was specified.
Examples
# Generate Weibull data with 20% censoring.
data <- GenData(n = 1e3, dist = "weibull", theta = c(2, 2), p = 0.2)
# Estimate parameters.
fit <- FitParaSurv(data, dist = "weibull")
[Package Temporal version 0.3.0.1 Index]