weimle1: Fit Weibull distribution parameters using MLE

View source: R/weimle1.R

weimle1R Documentation

Fit Weibull distribution parameters using MLE

Description

Fit the shape and scale parameters for a Weibull distribution to the time-to-event data using MLE.

Usage

weimle1(time, status)

Arguments

time

A vector of event times

status

A vector of 0-1 censoring status, 0 for censored, 1 for observed

Value

A list including out (the return from mle()), shape, and scale

Examples

time <- rexp(100)
status <- rbinom(n=100, size=1, prob=0.5)
weimle1(time=time, status=status)


reconstructKM documentation built on Dec. 3, 2025, 5:06 p.m.