weimle1 {reconstructKM}R 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)


[Package reconstructKM version 0.3.0 Index]