FitWeibull | R Documentation |
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
FitWeibull(
data,
init = list(),
sig = 0.05,
status_name = "status",
tau = NULL,
time_name = "time"
)
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. |
An object of class fit
containing the following:
The estimated shape \alpha
and rate \lambda
.
The observed information matrix.
The fitted mean, median, and variance.
The estimated RMSTs, if tau was specified.
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.