weimle1: Fit Weibull distribution parameters using MLE

Description Usage Arguments Value Examples

View source: R/weimle1.R

Description

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

Usage

1
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

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

reconstructKM documentation built on Nov. 25, 2020, 5:08 p.m.