[R] Estimating Weibull parameters by maximum liklihood - with censored and non censored data?

Bill.Venables at csiro.au Bill.Venables at csiro.au
Tue Sep 21 07:30:47 CEST 2010


library(help = survival)

help("survreg", package = "survival") 

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Halabi, Anan
Sent: Tuesday, 21 September 2010 3:12 PM
To: r-help at r-project.org
Subject: [R] Estimating Weibull parameters by maximum liklihood - with censored and non censored data?

Below my code:

sampleSize <- 20
shape.true <- 1.82
scale.true <- 987
sampWB <- rweibull(sampleSize, shape=shape.true, scale=scale.true)
print(sampWB)
censidx <- sample(1:length(sampWB), length(sampWB)*0.3)
Censored.data <- sampWB[censidx]
print(Censored.data)
NonCensored.data <- sampWB[-censidx]
print(NonCensored.data)

how can I estimte weibull parameters by maximum liklihood with censored and non censored?

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list