Estimates parameters for Weibull event times subject to non-informative
right censoring. The Weibull distribution is parameterized in terms
of the shape
FitWeibull(
data,
init = list(),
sig = 0.05,
status_name = "status",
tau = NULL,
time_name = "time"
)
An object of class fit
containing the following:
The estimated shape
The observed information matrix.
The fitted mean, median, and variance.
The estimated RMSTs, if tau was specified.
Data.frame.
List containing the initial value for the shape,
Significance level, for CIs.
Name of the status indicator, 1 if observed, 0 if censored.
Optional truncation times for calculating RMSTs.
Name of column containing the time to event.
# 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")
Run the code above in your browser using DataLab