









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Question #1:
(a) The maximum likelihood estimators of parameters for each group are:
− λ (^) I e 0. 3864 2.^5880
I Scale γ
II Scale γ
III Scale γ
IV Scale γ
V Scale γ
By definition is the pth quantile (or 100pth percentile) of. The tenth
percentile,
1
− = F ( t )= 1 − S ( t )
F ( t (^) (^) 0. 10 )= 0. 10 ⇒ S ( t 0. 10 )= 0. 90 ⇒exp[−(λ t 0. 10 )]= 0. 90 ⇒( λ t 0. 10 ) =−log 0. 90 ⇒
γ γ
log( log 0. 90 ) log( log 0. 90 )
log( ) log( log 0. 90 ) ) log( ) 0
= − ⇒ =− + − = +σ − γ
γ λ t t λ β
not a linear function of β 0
Since log( (^) t (^) 0. 10 ) is a linear function of β 0
method to find confidence intervals. I will also show you how to find the standard error of
confidence intervals by the first method are different from the confidence intervals obtained based on SAS results directly.
= exp[ + log(−log 0. 90 )]=exp[ 2. 4900 +( 0. 3864 )log(−log 0. 90 )] ⇒
t 0. 10 =exp(^1.^62045 )=^5.^0554
var[ + log(−log 0. 90 )]= )+ var( )+ 2 ( , ) = 0
2
β σ β σ β^ σ
2
confidence interval for
confidence intervals for other groups.
2
is ( , ) ( 1. 4395 , 4. 6973 ).
Note that percentiles and their standard errors can be obtained in SAS easily and you do not have to do this long process. You should write
Proc lifereg data=B; By Type; Model Time*Status(0)=/covb d=weibull; Output out=a p=t10 quantile=0.10 std=s; Run; quit;
Proc print data=a; BY Type; Var Time Status Prob t10 s; Run; quit;
The P = t10 in the output statement requests percentiles. By defaults, PROC LIFEREG calculates the 50th^ percentile, which is the median. I requested tenth percentile with the QUANTILE keyword, as described in the PROC LIFEREG documentation. The word t10 in the OUTPUT statement is just the variable name that I chose for tenth percentile. The STD keyword requests the standard error of the percentile. In the OUTPUT, PROB is the requested quantile (0.10).
The estimate of tenth percentile and its standard deviation, and a 95% confidence interval for tenth percentile for each group, using SAS, are given in the following table.
Group Estimate Standard Error Confidence Interval I 5.055 1.49955 5.055 ± 1.96(1.49955) II 2.600 0.78461 2.600 ± 1.96(0.78461) III 4.721 1.13805 4.721 ± 1.96(1.13805) IV 3.490 1.21907 3.490 ± 1.96(1.21907) V 8.829 1.81328 8.829 ± 1.96(1.81328)
These confidence intervals are different from the confidence intervals obtained by using log transformation.
(b) The plot of survivor functions of failure time for five different compounds is given in the
The survivor function of compound 4 is greater than survivor function of compound 2. Survivor function of compound 4 is less than survivor function of compound 3 most of the time. The p- values for long-rank test and Wilcoxon test for testing equality of survivor functions are 0. and 0.0003, respectively. Therefore, we strongly reject the equality of survivor functions.
Title: The Plot of Survivor Functions of Failure Time for Five Different Compounds
Par t b - Sur vi vor f unct i on
Ti me
0 5 10 15 20 25 30
STRATA: TYpe=I TYpe=I I TYpe=I I I TYpe=I V TYpe=V
For Weibull distribution, testing versus
, for some
H (^) 1 : Si ( t^ )≠^ Sj ( t^ ) i^ ≠^ j is equivalent to testing λ λ^ γ^ γ
0 : =^ , = for all i ≠ j , i = 1 ,… , 5 , j = 1 ,…, 5 versus λ λ γ γ i j i j
for
i ≠ j
-6.7670, -6.4549, -4.5925, -7.8387 and -3.0217, respectively. Therefore, the value of the test
TS =− 2 [ − 39. 8296 −(-6.7670-6.4549-4.5925-7.8387-3.0217)] = 22. 3096
The test statistic has an asymptotic chi-square distribution with degrees of freedom of 10-2=8.
strong evidence to conclude that there is a difference in the survivor functions of the failure time of five compounds.
Part c - Lognor mal Di st r i but i on
l nor m
0
1
2
3
l ogTi me
1 2 3 4
Par t b - Wei bul l Di st r i but i on
0
1
Log of Ti me
STRATA: TYpe=I TYpe=I I TYpe=I I I TYpe=I V TYpe=V
obtaining by solving ( 0. 10 ) -1.
− σ
, where Φ is the standard normal
to you to complete it and, in the following; I only give you SAS results. Note that the estimates from above method are the same as the SAS results, but the standard errors and confidence intervals are different.
The estimate of tenth percentile and its standard deviation, and a 95% confidence interval for tenth percentile for each group, using SAS for lognormal distribution, are given in the following table. As we expect, the confidence intervals based on lognormal distribution are narrower.
Group Estimate Standard Error Confidence Interval I 4.75996 1.08927 4.75996± 1.96(1.08927) II 3.36783 0.56237 3.36783 ± 1.96(0.56237) III 4.71182 0.82937 4.71182 ± 1.96(0.82937) IV 5.26383 0.91076 5.26383 ± 1.96(0.91076) V 8.80268 1.33558 8.80268 ± 1.96(1.33558)
Question #2:
(a) Probability plots for exponential; Weibull, lognormal, and log-logistic distribution are given in the next page. It is clear that exponential and Weibull distributions are inadequate. Although the probability plots for lognormal and log-logistic distribution are very similar, but they are not identical. (Compare Y-axes to see the differences.) It seems that lognormal distribution fit the data better.
(c) The following table gives the log-likelihoods for exponential, Weibull, lognormal, and generalized gamma distribution.
Distribution Exponential Weibull Lognormal Generalized Gamma Log-likelihood -41.8597 -41.8571 -40.6769 -40.
For testing
vs.
the value of the test statistic is TS = -2[-41.8597 – (-41.8571)] = 0.0052. The test statistic has a chi-square distribution with degrees of freedom df = 2 -1 = 1. So P-value = P(TS > 0.0052) =
model. The following table gives the value of test statistic and P-value for each testing other distributions.
Testing Test Statistic Df P-value Exponential vs. Generalized Gamma 3.098 2 0. Weibull vs. Generalized Gamma 3.093 1 0. Lognormal vs. Generalized Gamma 0.7324 1 0.
Since all P-values are greater than 0.05, we fail to reject the null hypotheses. Therefore, with likelihood ratio test, we choose exponential distribution.
(d) The log-likelihood, BIC, and AIC for exponential, Weibull, lognormal, log-logistic, and generalized gamma distribution are given in the following table.
Distribution Log-Likelihhod (LL) BIC = LL – (p/2)log(n) AIC = LL – 2p Exponential -41.8597 -43.5767 -43. Weibull -41.8571 -45.2911 -45. Lognormal -40.6769 -44.1109 -44. Log-logistic -41.4858 -44.9198 -45. Generalized Gamma -40.3107 -45.4517 -46.
Since exponential distribution has largest value of BIC and AIC, we choose exponential distribution as the model that fit the data best.
(e) The following table gives selected distribution for parts (a) to (d).
Part (a) (b) (c) (d) Selected distribution Lognormal Generalized Gamma Exponential Exponential
It is clear that the results are not consistent. For example, the probability plots and Cox-Snell residual plots shows that exponential and Weibull distribution are not adequate while we choose exponential distribution by likelihood ratio test, BIC, and AIC. For this problem, the sample size is 31 with 11 censored observations. Since likelihood ratio test, BIC, and AIC are based on large sample properties, we should rely more on graphical methods. So, lognormal distribution should be a good model for data (It should be mentioned that, in part (b), lognormal distribution could be chosen instead of generalized gamma distribution).
Question #3:
equivalent to testing H (^) 0 : λ (^) I = (^) λ II , γ I = γ II versus H (^) 0 : λ (^) I ≠ λ IIor γ I ≠ γ II. The log--
TS =− 2 [ − 24. 0310 −(− 12. 7418 − 10. 0454 )] = 2. 4876
The test statistic has an asymptotic chi-square distribution with degrees of freedom of 4-2=2.
ratio test is not very reliable for this problem since we have only 10 observations in each group. We should use non-parametric method.)
(b) Note that 1. 3508
I Scale γ
and 1. 8734
II Scale γ
. These values
are estimate of “Weibull Shape” in SAS results. Hence, by using SAS results, we have
. .( γ )= 0. 3477
S E I and. .( γ )= 0. 5041
S E II. Therefore, the value of the test statistic for testing
H (^) 0 :^ γ^ I =^ γ II versus H (^) 0 :^ γ^ I ≠^ γ II is
γ γ
γ γ
I II
I II Var Var
Since γ (^) I = (^) γ II , testing (^) H 0 : SI ( t )= (^) SII ( t )versus (^) H 1 : SI ( t )< (^) SII ( t ) is equivalent to
testing H (^) 0 : λ (^) I = λ II versus H (^) 0 : λ (^) I > λ II. Note that
and 0. 02466
We can find standard errors of λ
I and^ λ
II by using maximum likelihood properties, but it is
easier to write the null hypothesis in terms of λ
θ I
I
= and λ
θ II
II
=. Note that the estimate
and standard error of θ (^) I and θ (^) II are given in SAS output. (The estimate is called “Weibull
Scale”.) Testing H (^) 0 : λ (^) I = λ II versus H (^) 0 : λ (^) I > λ II is equivalent to testing
H 0 :^ θ^ I =^ θ II versus H 0 :^ θ^ I <^ θ II. Using SAS results, the value of the test statistic is:
θ θ
θ θ
I II
I II Var Var
There is not enough evidence to conclude that Type II insulation is superior.
______________________________________________________________________________
Question #4:
(a) The plot of survivor function is given in the following. The Kaplan-Meier estimate of survivor function can be obtained by SAS. I do not copy the estimate to save pages.
Note that the gaps between steps in the above plot are increasing after 2000. This implies that the data are mixture of two distributions.
Question #5:
Treatment R: The log-likelihood for exponential, Weibull, lognormal, log-logistic, and gamma distributions are -68.1284, -67.9342, -67.8430, -67.9618, and -67.9618, respectively. For testing
vs.
the value of the test statistic is TS = -2[-68.1284 – (-67.9432)] = 0.3704. The test statistic has a chi-square distribution with degrees of freedom df = 2 -1 = 1. So P-value = P(TS > 0.3704) =
model. The following table gives the value of test statistic and P-value for each testing other distributions.
Testing Test Statistic Df P-value
Exponential vs. Generalized Gamma 0.5852 2 0. Weibull vs. Generalized Gamma 0.2148 1 0. Lognormal vs. Generalized Gamma 0.0144 1 0. Log-logistic vs. Generalized Gamma 0.2520 1 0.
Since all P-values are greater than 0.05, we fail to reject the null hypotheses. Therefore, with likelihood ratio test, we choose exponential distribution for group R.
Treatment RC: The log-likelihood for exponential, Weibull, lognormal, and log-logistic distributions are -82.1864, -73.2674, -74.2923, and -73.6248, respectively For testing
vs.
the test is TS = -2[-82.1864 – (-73.2674)] = 17.838. The test statistic has a chi-square distribution with degrees of freedom df = 2 -1 = 1. So P-value = P(TS > 17.838) = 0.00002. Therefore, we
other distributions, we find that lognormal distribution is an adequate model for data. Since the lognormal was not rejected for the treatment R, we choose log-normal for both groups. I chose lognormal distribution since it is very simple. (Log T has a normal distribution.) Students might choose Weibull distribution or log-logistic distribution. It is a good idea to find Cox-Snell residual plots to see how well distributions fit the data, and then choose the best distribution.
equivalent to testing H (^) 0 : μ (^) R =^ μ RC , σ R = σ RC versus H (^) 0 : μ (^) R ≠ μ RCor σ R ≠ σ RC. The log--
TS =− 2 [ − 148. 7927 −(− 67. 8430 − 74. 2923 )] = 13. 3148
The test statistic has an asymptotic chi-square distribution with degrees of freedom of 4-2=2.
there is strong evidence to conclude that two survival functions are not equal. The estimated parameters are:
= Intercept = 3. 7052 μ R
, = Intercept = 1. 2718 μ RC
, (^) σ R = Scale = 1. 2718
, (^) σ = 0. 6392
RC
Note that PROC LIFETEST cannot handle interval censoring. Therefore, we cannot use nonparametric methods, probability plots.
______________________________________________________________________________
Question #6: For simplicity, assume that the distribution function of T is continuous. The distribution function of R is:
r R r^ P R r P ST r P ST r P ST
− = ≤ = − ≤ = ≥− = ≥
Since S(T) is a continuous decreasing function, we have.
Hence,
1
r r P ST PT − − − ≥ = ≤
F e S e PT S e S^ ( S^ e )^ e
r r r r R r PST PT r
− − − − − −
1 1
r R R r r − ( )= ' ( )=. Therefore, R has an exponential
distribution with parameter λ = 1 , and this completes the proof.
______________________________________________________________________________