Join us for
RADAR: AI Edition

Temporal (version 0.3.0.1)

FitWeibull: 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 α and rate λ: f(t)=αλαtα1e(λt)α,t>0

Usage

FitWeibull(
  data,
  init = list(),
  sig = 0.05,
  status_name = "status",
  tau = NULL,
  time_name = "time"
)

Value

An object of class fit containing the following:

Parameters

The estimated shape α and rate λ.

Information

The observed information matrix.

Outcome

The fitted mean, median, and variance.

RMST

The estimated RMSTs, if tau was specified.

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.

Examples

Run this code
# 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