Free Essay

Survival Analysis

In:

Submitted By xufanfido
Words 3590
Pages 15
STAT 572 Survival Analysis HW7
Problem: Data set: WHAS, Covariates: AGE, SEX, MITYPE. Perform survival regression.

1. Data Description.
In this case, there is one continuous variable (AGE), and two categorical variables (SEX, MITYPE). We are studying how these three predicators affect patients’ survival time. For SEX, Male=0 and Female=1. For MI Type of patients, there are three values: 1 | Q-Wave | ST segment elevation myocardial infarction (STEMI) | 2 | Not Q-Wave | non-ST segment elevation myocardial infarction (NSTEMI) | 3 | Indeterminate | |
Table 1.1 MI type explanation

2. Variable Analysis
Since AGE is a continuous variable, to be convenience, we make it as categorical variable CAGE using 25%, 50% and 75% quantile at FSTAT=1. Using PROC UNIVARIATE to decide the cut point as follows: Variables | 25% Quantile | 50% Quantile | 75% Quantile | AGE | 64 | 72 | 80 |
Table 2.1 Quantiles Cut Point for AGE
Thus, all the variables are categorical, such that we can use the LIFETEST to test if different levels of covariates have the same effect on the survival curve.
We are doing hypothesis testing for each predictor:
H0:SSEX=0=SSEX=1 vs. H1:Not H0
H0:SMI=1=SMI=2=S(MI=2) vs. H1:Not H0
H0:SCAGE=0=SCAGE=1=SCAGE=2=S(CAGE=3) vs. H1:Not H0
First, we will test the equality over SEX, and compare the KM curve using LIFETEST and PHREG. Test | Chi-Square | DF | Pr > Chi-Square | Log-Rank | 9.4271 | 1 | 0.0021 | Wilcoxon | 9.2239 | 1 | 0.0024 | -2Log(LR) | 12.0677 | 1 | 0.0005 |
Table 2.2 Test of Equality over SEX using LIFETEST

Figure 2.1 KM Survival Curve for Male (Red) and Female (Blue)
From Table 2.2 and Figure 2.1, we can easily see that there is significant difference between male and female.
Then, we use PHREG to test SEX and draw the PHREG curve. Test | Chi-Square | DF | Pr>ChiSq | Likelihood Ratio | 9.1280 | 1 | 0.0025 | Score | 9.3800 | 1 | 0.0022 | Wald | 9.2647 | 1 | 0.0023 |
Table 2.3 Significance test for SEX effect using PHREG

Figure 2.2 Comparison of KM Curve (Blue) and COX Curve (Black) for SEX
For the MI Type, since there are only 6 observations with 1 censored when MI=3, we will test twice with MI=3 and without MI=3. Test | Chi-Square | DF | Pr > Chi-Square | | Test | Chi-Square | DF | Pr > Chi-Square | Log-Rank | 13.1026 | 2 | 0.0014 | | Log-Rank | 2.2637 | 1 | 0.1324 | Wilcoxon | 16.7644 | 2 | 0.0002 | | Wilcoxon | 6.5772 | 1 | 0.0103 | -2Log(LR) | 18.0153 | 2 | 0.0001 | | -2Log(LR) | 0.8075 | 1 | 0.3688 |
Table 2.3 Test for Equality over MI Type (Left: Include MI=3)

Figure 2.2 KM Survival Curve for MI Type (Red: Q-Wave; Blue: Not Q-Wave)
From table 2.3 and Figure 2.2, there is not a significant difference between Q-Wave and Not Q-Wave when the survival time is getting longer. However, MI=3 has a significant difference between the other two type, and people with MI=3 always have very short survival time. Thus, we consider to reclassify the MI Type as MI=0 if Q-Wave or Not-Q-Wave, and MI=1 if not determined.
In the Cox Model, the test results are different. Testing Global Null Hypothesis: BETA=0 | Test | Chi-Square | DF | Pr > ChiSq | Likelihood Ratio | 0.5332 | 1 | 0.4652 | Score | 0.5299 | 1 | 0.4666 | Wald | 0.5296 | 1 | 0.4668 |
Table 2.4 Significance test for MITYPE effect using PHREG

Figure 2.3 Comparison of KM Curve (Blue) and COX Curve (Black) for MITYPE
Since there are 6 observations when MI=3, the KM curve for MI=3 is only 6 points at left side of the plot, while PHREG curves are parallel for each MITYPE. However, from table 2.4, the MITYPE is not significant.
Then, we will test the equality over categorical age. Test | Chi-Square | DF | Pr > Chi-Square | Log-Rank | 81.2589 | 3 | <.0001 | Wilcoxon | 74.1006 | 3 | <.0001 | -2Log(LR) | 122.7237 | 3 | <.0001 |
Table 2.4 Test of Equality over CAGE

Figure 2.4 KM Survival Curve for CAGE (0: Red; 1: Blue; 2: Green; 3: Black)
From table 2.4 and figure 2.3, we can easily see that there exist significant differences between each age categories. Also, from the plot, we can see with people getting older, their survival probability is reducing.

Figure 2.5 of KM Curve (Blue) and COX Curve (Black) for CAGE
From figure 2.5, Cox curve and KM curve are not very close.

3. Comparing Cox to Weibull Estimated Curve
In the last homework, we have the Weibull model which contains variable AGE SEX and their interaction. If we treat AGE and a categorical variable CAGE, then we can get four estimated Weibull curves and Cox curves, as well as we can get two curves for SEX.

Figure 3.1 Weibull (Red) and COX (Black) curve for SEX

Figure 3.2 Weibull (Red) and COX (Black) curve for CAGE
Since the estimated Weibull curve will extend to a very large time value, such that we cannot see the Cox curve if they are in the same figure. We just cut off a certain range of the curve. From figure 3.1 and 3.2, we can see the Weibull curve is close to Cox curve.

4. Checking Assumptions.
Since the data was collected individually, we assume that the observations are independent from each other. We need to check the assumption of linearity and proportional hazard. a) Check Linearity:
Only variable AGE is continuous, so we need to check the linearity assumption of AGE. h(t)=h0(t)expXβ => loght=logh0t+Xβ
We will use several methods to check the linearity of AGE, because it is continuous variable. 1) Categorical Method
Making AGE to five categories, then the output will give the estimated coefficients for Intercept, CAGE0, CAGE1, CAGE2 and CAGE3.

CAGE_0 | -1.51143 | CAGE_1 | -0.97181 | CAGE_2 | -0.47724 | CAGE_3 | -0.04285 |
Table 4.1 Parameter Estimation for CAGE

Then, we have the plot for categorical age:

Figure 4.1 CAGE vs. Log(h/h0)

From Figure 4.1, we can see it is a straight line. Thus, the linearity of age is appropriate.

Also, using TEST statement in PHREG to test Linearity, the result is: Linear Hypotheses Testing Results

Wald Label Chi-Square DF Pr > ChiSq

Test 1 20.5238 1 <.0001

Table 4.2 Linearity Test using Test statement

2) Restricted Cubic Spline
The RCS Macro will generate a new variable which is approximately a cubic term. In this problem, we use RCS Macro to generate variable AGE1. Then test significance.
H0: βAGE1=0 vs. H1: βAGE1≠0
SAS Output: Analysis of Maximum Likelihood Estimates | Parameter | DF | Parameter
Estimate | Standard
Error | Chi-Square | Pr > ChiSq | Hazard
Ratio | SEX | 1 | 0.08397 | 0.13243 | 0.4021 | 0.5260 | 1.088 | AGE | 1 | 0.05187 | 0.01097 | 22.3743 | <.0001 | 1.053 | AGE1 | 1 | -0.01297 | 0.01337 | 0.9403 | 0.3322 | 0.987 |
Table 4.3 Cubic Restricted Spline Test for Linearity

From the table above, the new variable AGE1 is obviously not significant. Thus, we accept null hypothesis, which is AGE is linearly entering the model.

b) Check Proportional Hazard
We have several methods to test the proportional hazard, such as LLS curve, Schoenfeld Residual plot and checking if there is any time dependent variable. 1) LLS Curve

Figure 4.2 LLS Curve for Categorical Covariates
Left side is LLS curve generated from LIFETEST, and right side is generated from PHREG. Since in Cox model, the proportional hazard is assumed, the LLS curve is always parallel no matter what the data is. Thus, the three plots in right side of Figure 4.2 cannot be used to check the PH assumption.
By looking at the left side of figure 4.2, the LLS curve for SEX and CAGE are roughly parallel, while the LLS curve for MI type is not.
For MI Type, since there are only six observations out of 481 total observations when MI=3, thus we will ignore these 6 observations to test if this covariate is significant, and based on the result of LIFETEST, MI=1 and MI=2 do not have significant effect for the survival probability. Thus, we will not use this covariate in our model, and still use the 481 total observations.

2) Shoenfeld Residual Plot
Since the Schoenfeld residuals are, in principle, independent of time, a plot that shows a non-random pattern against time is evidence of violation of the PH assumption.
We plot the Shoenfeld Residual of AGE and SEX as follows:

Figure 4.3 Schoenfeld Residual Plot for AGE and SEX
From the above plots, we can the Schoenfeld residuals are symmetrically distributed around 0, and they are independent from time. Thus the PH assumption is satisfied for the two covariates.

3) Time Dependent Method
We know that if any covariates are time dependent, then the Proportional Hazard assumption for the covariate is violated. Using the interaction between a covariate and time as a time dependent variable, and adding it in PROC PHREG procedure, we can get the p-value of significant test for the time dependent variable. Thus, we can see if the PH assumption is violated.

Analysis of Maximum Likelihood Estimates | Parameter | DF | Parameter
Estimate | Standard
Error | Chi-Square | Pr > ChiSq | Hazard
Ratio | AGE | 1 | 0.04687 | 0.00672 | 48.7004 | <.0001 | 1.048 | SEX | 1 | 0.10863 | 0.15995 | 0.4613 | 0.4970 | 1.115 | TSEX | 1 | -0.0000218 | 0.0001262 | 0.0299 | 0.8626 | 1.000 | TAGE | 1 | -5.4977E-6 | 5.31812E-6 | 1.0687 | 0.3012 | 1.000 |
Table 4.4 Checking PH using Time dependent variable
From the output above, we can see variable TSEX and TAGE, which are time dependent variables, are not significant. No evidence was shown to reject null hypothesis, which is they are time independent. It indicates that PH assumption is satisfied.
For the variable MITYPE, which we have decided not to use, when we check its PH assumption, it is not satisfied. The results are not shown, because it will not be used for our model. If some other variables, which we may use in future, does not satisfy the PH assumption, we will use BY or STRAT statement to fit separate Cox model. 4) Some other method in SAS
Using ASSESS statement, we can test the PH assumption. The output is as follows: Supremum Test for Proportionals Hazards
Assumption | Variable | Maximum Absolute
Value | Replications | Seed | Pr >
MaxAbsVal | AGE | 0.6458 | 1000 | 159346001 | 0.7500 | SEX | 0.8925 | 1000 | 159346001 | 0.3670 |
Table 4.5 Checking PH using ASSESS Statement in SAS
The p-values are large enough to accept null hypothesis, which is PH assumptions are satisfied. In this statement, SAS also gives some plots. Figure 4.4 Testing PH using ASSESS
The ASSESS statement produces a graphical display of empirical score process, which is based on the martingale residuals. [See Paul D. Allison, Survival Analysis Using SAS, page 173-174].

5. Checking Interactions.
When we add the interaction of AGE and SEX, the result shows all of the three terms are significant. Analysis of Maximum Likelihood Estimates | Parameter | DF | Parameter
Estimate | Standard
Error | Chi-Square | Pr > ChiSq | Hazard
Ratio | Label | AGE | 1 | 0.05175 | 0.00730 | 50.2241 | <.0001 | . | | SEX | 1 | 1.55289 | 0.79231 | 3.8414 | 0.0500 | . | | AGE*SEX | 1 | -0.02040 | 0.01088 | 3.5147 | 0.0608 | . | AGE * SEX |
Table 5.1 Significant test for interaction
As one can see, however, the Hazard Ratio is left blank if we add any interaction to the model. It is because that there will not be an exact hazard ratio to interpret. We use Likelihood Ratio Test to test if it is necessary to add this interaction. -2 Log L | Reduced Model (without interaction) | Full Model (with interaction) | 2770.751 | 2767.265 |
Table 5.2 -2 Log L for full model and reduced model
Obviously, the test statistic, the difference between the two values (3.5) is less than Chi (0.95, 1), which is 3.84, but it is bigger than Chi (0.90, 1) = 2.705. Given α=0.1, we need to add this interaction.

6. Interpretation for parameters.
In Cox model, the parameters for covariates are easy to interpret. Their exponential terms are hazard ratio. However, to interpret them, the model should not include any interactions. Analysis of Maximum Likelihood Estimates | Parameter | DF | Parameter
Estimate | Standard
Error | Chi-Square | Pr > ChiSq | Hazard
Ratio | AGE | 1 | 0.04281 | 0.00553 | 59.8881 | <.0001 | 1.044 | SEX | 1 | 0.08404 | 0.13269 | 0.4011 | 0.5265 | 1.088 |
Table 6.1 Model without interaction
The hazard ratio in above table is the exponential function of the parameters.
A hazard ratio of two, for example, means a patient in one treatment group who has not died (or progressed, or whatever end point is tracked) at a certain time point has twice the probability of having died (or progressed...) by the next time point compared to a patient in the other treatment group.
In our model, the hazard ratio of SEX is 1.088, means female (SEX=1) who has not died at a certain time point has 1.088 times the probability of having died by next time point compared to male.
Using the same way, we can interpret the hazard ratio of AGE. The hazard ratio is between patient who is one more year older and patient at a certain age. 7. Prediction
In the end, we will make a prediction for the one who has the mean value of age (67), the worst value of sex (Female=1). Since our best model does not contain MI Type, we will skip this covariate. We will use the model in Table 6.1 (without interaction) and Table 5.1 (with interaction) to predict the patient’s survival probability respectively.
From SAS data step, by looking at the data set generated from SAS, we get the estimated probability. With interaction | Without interaction | 0.682—0.684 | 0.702—0.704 |
Table 7.1 Prediction of Survival Probability using two Cox models
There is not a significant difference between these two models for the predicted survival probability. Also, comparing to 0.678, the estimated survival probability using Weibull Model in HW5, we find they are very close.
Also, we can get the Cox curve comparing to Weibull Curve we generated in HW5.

Figure 7.1 Comparing Estimated Weibull (Red) and Cox (Black Step) Curve for Sixty-Seven Years Old Female Patient
Figure 7.1 shows both Weibull curve and Cox curve under the same predictor variables. They are very close. Further study is needed to assessing which model is more appropriate.

APPENDIX: MAIN SAS CODE
OPTIONS LS=80 PS=400 FORMDLIM='=';
DATA WHAS;
INFILE 'I:\Documents\My Wealth\572_Survival_Analysis\HW5\WHAS.txt'; INPUT ID AGE SEX CPK SHO CHF MIORD MITYPE YEAR YRGRP LENSTAY DSTAT LENFOL FSTAT;
KEEP ID AGE SEX MITYPE LENFOL FSTAT;
RUN;

PROC UNIVARIATE;
VAR AGE; WHERE FSTAT=1;
RUN;

DATA WHAS; SET WHAS; CAGE1=(64<=AGE<72); CAGE2=(72<=AGE<80); CAGE3=(AGE>=80); CAGE=1*CAGE1+2*CAGE2+3*CAGE3; RUN;

ods graphics on;
*Plot KM Curve and LLS curve using lifetest;
DATA AA; INPUT SEX @@; CARDS;
0 1
;run;
PROC LIFETEST DATA=WHAS OUTS=KM1 NOTABLE; STRATA SEX; *Change to SEX and CAGE to test separately; TIME LENFOL*FSTAT(0); RUN; DATA KM1; SET KM1; IF SEX=0 THEN SURV0=SURVIVAL; IF SEX=1 THEN SURV1=SURVIVAL; run;
PROC PHREG DATA=WHAS; MODEL LENFOL*FSTAT(0)=MITYPE;run; BASELINE OUT=BB1 COVARIATES=AA SURVIVAL=SURVIVAL;run;

DATA CC1; SET BB1; IF SEX=0 OR SEX=1; IF SEX=0 THEN SUR0=SURVIVAL; IF SEX=1 THEN SUR1=SURVIVAL;run;

GOPTIONS RESET=ALL;
DATA FINAL1; SET KM1 CC1;
PROC GPLOT; PLOT(SURV0 SURV1 )*LENFOL/OVERLAY; SYMBOL1 V=NONE I=STEPL C=BLACK L=1; SYMBOL2 V=NONE I=STEPL C=BLACK L=1;
*this will plot the 2 KM survival curves ;
* notice the curves have different steps locations;
RUN;
PROC GPLOT; PLOT( SUR0 SUR1)*LENFOL/OVERLAY; SYMBOL1 V=NONE I=STEPL C=BLACK L=1; SYMBOL2 V=NONE I=STEPL C=BLACK L=1;
*this will plot the 2 PHREG curves;
* notice the curves have the same steps locations;
RUN;
PROC GPLOT; PLOT(SURV0 SURV1 SUR0 SUR1)*LENFOL/OVERLAY; SYMBOL1 V=NONE I=STEPL C=BLUE L=2 W=2; SYMBOL2 V=NONE I=STEPL C=BLUE L=2 W=2; SYMBOL3 V=NONE I=STEPL C=BLACK L=1 W=2; SYMBOL4 V=NONE I=STEPL C=BLACK L=1 W=2;
*this will plot the 2 KM survival curves and the 2 PHREG curves;
RUN;

DATA EST; INPUT SEX; CONTROL=1; LENFOL=0; FSTAT=0;
CARDS;
0
1
;
DATA LAST; SET WHAS EST;
PROC LIFEREG DATA=LAST; MODEL LENFOL*FSTAT(0)=SEX /D=WEIBULL; OUTPUT OUT=WEIB QUANTILES=.01 .05 .10 .15 .20 .25 .30 .35 .40 .45 .50 .55 .60 .65 .70 .75 .80 .85 .90 .95 .99 P=PRED CONTROL=CONTROL ;run;
DATA WEIB; SET WEIB; SURV=1-_PROB_; LENFOL=PRED; IF SEX=0 THEN SURVV0=SURV; IF SEX=1 THEN SURVV1=SURV;
DATA FINAL11; SET CC1 WEIB;
RUN;
PROC GPLOT; PLOT(SUR0 SUR1 SURVV0 SURVV1)*LENFOL /OVERLAY HAXIS=1 TO 8000 BY 400;; SYMBOL1 V=NONE I=STEPL C=BLACK L=1 W=2; SYMBOL2 V=NONE I=STEPL C=BLACK L=1 W=2; SYMBOL3 V=NONE I=JOIN C=RED L=3 W=2; SYMBOL4 V=NONE I=JOIN C=RED L=3 W=2; TITLE 'WEIBULL and COX CURVES for SEX';
RUN;
*Check Linearity;
PROC UNIVARIATE DATA=WHAS;
VAR AGE; WHERE FSTAT=1;
OUTPUT OUT=AAA PCTLPTS=0 20 40 60 80 100 PCTLPRE=AGE_;
RUN;
DATA WHAS1; SET WHAS; CAGE1=(62<=AGE<70); CAGE2=(70<=AGE<76); CAGE3=(76<=AGE<82); CAGE4=(AGE>=82); CAGE=1*CAGE1+2*CAGE2+3*CAGE3+4*CAGE4; AGE2=AGE*AGE; RUN;
PROC PHREG DATA=WHAS1; CLASS CAGE; MODEL LENFOL*FSTAT(0)=CAGE; RUN;

*Schoenfeld Residual;
PROC PHREG DATA=WHAS ; MODEL LENFOL*FSTAT(0)=AGE SEX/RISKLIMITS; OUTPUT OUT=C RESDEV=DEV WTRESSCH=SCH_AGE SCH_SEX RESSCH=AGE1 SEX1 ;RUN;

PROC GPLOT DATA=C; PLOT AGE1*LENFOL; PLOT SEX1*LENFOL; RUN;

*options WTRESSCH,DFBETA, and LD are also useful in assessing model fit;
DATA D; SET C; LLENFOL=LOG(LENFOL); SLENFOL=SQRT(LENFOL);
PROC CORR DATA=D; VAR LENFOL LLENFOL SLENFOL; WITH SCH_AGE SCH_SEX; RUN;
PROC GPLOT DATA=C; *plot the deviance residuals; PLOT DEV*AGE; SYMBOL1 V=DOT C=BLACK; RUN;
PROC GPLOT DATA=C; PLOT SCH_AGE*LENFOL / CFRAME=white OVERLAY VAXIS=axis1 HAXIS=axis2 FRAME VREF=0 VMINOR=0 HMINOR=0 CAXIS = blue NAME='plot3'; symbol value=dot i=sm60s h=1.2 w=3; TITLE 'Schoenfeld Residuals for AGE'; axis1 label =(a=90 r=0 f='Arial''Schoenfeld Residuals') value=(f='Arial' ); axis2 label=( f='Arial' 'Time')value=(f='Arial') ; RUN; QUIT; *plot the Schoenfeld residuals for AGE;

SYMBOL1 V=DOT C=BLACK; RUN;
PROC GPLOT DATA=C; PLOT SCH_SEX*LENFOL / CFRAME=white OVERLAY VAXIS=axis1 HAXIS=axis2 FRAME VREF=0 VMINOR=0 HMINOR=0 CAXIS = blue NAME='plot3'; symbol value=dot i=sm60s h=1.2 w=3; TITLE 'Schoenfeld Residuals for SEX'; axis1 label =(a=90 r=0 f='Arial''Schoenfeld Residuals') value=(f='Arial' ); axis2 label=( f='Arial' 'Time')value=(f='Arial') ; RUN; QUIT; *plot the Schoenfeld residuals for SEX (not very informative); TITLE 'Schoenfeld Residuals for SEX'; SYMBOL1 V=DOT C=BLACK; RUN;

PROC PRINT DATA=C; RUN;

*ASSESS Statement;
PROC PHREG DATA=WHAS PLOTS(CL)=(SURV SUR SURVIVAL S); MODEL LENFOL*FSTAT(0)=AGE SEX; ASSESS PH / RESAMPLE;
RUN;

*Time dependent Method;
PROC PHREG DATA=WHAS; MODEL LENFOL*FSTAT(0)=AGE SEX TSEX TAGE; TSEX=SEX*LENFOL; TAGE=AGE*LENFOL; PROPORTIONALITY_TEST: TEST TSEX, TAGE;
*this is a time-dependent variable that tests for PH;
RUN;
*Estimated Survival Curve for mean age people;
DATA AAA; INPUT AGE SEX; CARDS;
67 1
;
PROC PHREG DATA=WHAS; MODEL LENFOL*FSTAT(0)=AGE SEX; BASELINE OUT=BBB COVARIATES=AAA SURVIVAL=SURVIVAL LOGLOGS=LOGLOGS;
DATA CCC; SET BBB; IF SEX=1 AND AGE=67 THEN SURV1=SURVIVAL; LLENFOL=LOG(LENFOL); proc sort; by LENFOL;
PROC GPLOT; PLOT SURV1 *LENFOL/OVERLAY; TITLE 'Cox Curve for 67 years old Female Patients'; SYMBOL1 V=dot I=STEPL C=RED ; run; DATA EST1; INPUT CONTROL SEX AGE LENFOL FSTAT;
CARDS;
1 1 67 0 0
;
DATA LAST; SET WHAS EST1;run;
PROC LIFEREG DATA=LAST; MODEL LENFOL*FSTAT(0)=AGE SEX/D=WEIBULL; OUTPUT OUT=WEIB1 QUANTILES=.01 .05 .10 .15 .20 .25 .30 .35 .40 .45 .50 .55 .60 .65 .70 .75 .80 .85 .90 .95 .99 P=PRED CONTROL=CONTROL ; RUN;
DATA WEIB2; SET WEIB1; SURV2=1-_PROB_; LENFOL=PRED;
PROC SORT DATA=WEIB2; BY LENFOL;
DATA FINAL; SET CCC WEIB2;
PROC GPLOT; PLOT (SURV2 SURV1)*LENFOL/OVERLAY HAXIS=1 TO 5000 BY 400 VAXIS=0.3 TO 1 BY 0.05; SYMBOL1 V=NONE I=JOIN C=RED; SYMBOL2 V=NONE I=STEPL C=BLACK; TITLE 'Weibull and Cox Curve for 67 years old Female Patients'; *this plots the Kaplan-Meier curve together with the estimated Weibull survival curve;
RUN;

Similar Documents

Premium Essay

Econ

...Preface In our data analysis we do some univariate analysis before proceeding to models. In survival analysis it is highly recommended to look at the Kaplan-Meier curves for all the categorical predictors. This will provide insight into the shape of the survival function for each group and give an idea of whether or not the groups are proportional. We also consider the tests of equality across strata to explore whether or not to include the predictor in the final model. For the categorical variables such as marital, eservice, plusservice and totalservice we use the log-rank test of equality across strata which is a non-parametric test.  For the continuous variables such as age, address, income, education, employment, and reside we use a univariate Cox proportional hazard regression which is a semi-parametric model.  Univariate analysis We consider the Chi-squared test for age, address, income, education, and employ. All the variables have p-values of 0.0000 thus age, address, income, education, and employ are the potential candidate for the final model since the p-value is less than our cut-off value of 0.2. But we get different result in case of reside. We consider the Chi-squared test for reside which has a p-value of 0.5413 thus reside is not a potential candidate for the final model since the p-value is more than our cut-off value of 0.2. The log-rank test of equality across strata for the predictor marital has a p-value of 0.0136, thus marital will be included as a potential...

Words: 1033 - Pages: 5

Free Essay

Survival Notes

...Lecture 12: Introduction to Survival Analysis In many biomedical studies, the outcome variable is a survival time, or more generally a time to an event. We will describe some of the standard tools for analyzing survival data. Most studies of survival last a few years, and at completion many subjects may still be alive. For those individuals, the actual survival time is not known – all we know is how long they survived from their entry in the study. Similarly, certain individuals may drop out from the study or be lost to follow-up. Each of these cases is said to be censored, and the recorded time for such individuals is their time until the censoring event. Example: HPA staining for breast cancer survival We consider data from a retrospective study of 45 women who had surgery for breast cancer. Tumor cells, surgically removed from each woman, were classified according to the results of staining on a marker taken from the Roman snail, the Helix pomatia agglutinin (HPA). The marker binds to cancer cells associated with metastasis to nearby lymph nodes. Upon microscopic examination, the cancer cells stained with HPA are classified as positive, corresponding to a tumor with the potential for metastasis, or negative. It is of interest to determine the relationship of HPA staining and the survival of women with breast cancer. The survival times in months Ti and staining results (xi = 0 for negative and xi = 1 for positive) for the 45 women are presented in the following table. Also included...

Words: 3212 - Pages: 13

Free Essay

Realiability Theory

...Chapter 3: Introduction to Reliability Theory Claver Diallo OUTLINE 1. Part 1: Basic Reliability Models 1. 2. 3. 1. 2. 3. 4. 5. System Reliability function Probability distributions Reliability Block Diagram Serial and Parallel Structures Stand-by Structure k-out-of n Structure Complex structure 2. Part 2: Reliability of Structures 3. Part 3: Reliability Allocation 4. References 2 2 2 2 2 2 2 2 Chapter 3 - Part 1: Basic Reliability Models SYSTEM System: a collection of components or items performing a specific function. 4 4 4 4 4 4 4 4 STATE OF A SYSTEM A system is considered to be in one of the two following states: In operation (Up) Failed (Down) Transition from one state to the other occurs according to a known or unknown probability function. de aF de aF delllliiiiaF de aF 5 5 5 5 5 5 5 5 noitca ecnanetniaM noitca ecnanetniaM noitca ecnanetniaM noitca ecnanetniaM riapeR riapeR riapeR riapeR e eruliaF gn arepO gn arepO gniiiittttarepO gn arepO SYSTEM LIFETIME Lifetime is a measure of performance. Lifetime is a measure of performance. In general, lifetime is measured by the number In general, lifetime is measured by the of hours the system was in operation. number of hours the system was in operation. It can also be measured by the number of It can also be measured by the number of km or miles raced, number of pages copied, pages copied, km or miles raced, number wheel rotations, …etc. of wheel rotations, …etc. Lifetime (T) is a...

Words: 4561 - Pages: 19

Premium Essay

Analysis: Is Survival Selfish

...In the mist of survival people are most often faced with treacherous decisions that can be the difference between life and death and sometimes it is not always their own death. Many people raise the question “Is survival selfish?” It depends on many different factors like, is it better to save yourself or risk dying to try to save others, but what if then no one gets out alive. The selfishness of one’s survivability is harshly depended upon the situation and not everyone will not react the same, follow the rules, and not everyone will not follow their original plan. Not everyone reacts the same in a survival situation. When it comes to making a decisions within a group not everyone is going to agree with the outcome. In “Is Survival Selfish?”...

Words: 598 - Pages: 3

Premium Essay

Survival In The Wild Analysis

...Survival: the state or fact of continuing to live or exist, typically in spite of an accident, ordeal, or difficult circumstances. This is one of the main key terms people use every day. Difficult situations happen inside and outside of school. Survival in the wilderness is very similar to a student in high school. Surviving Alaska’s vast forests is similar to succeeding in school. Adjusting to the wild is the same as trying to fit in as a high school student. In the book it says that he had many different struggles such as adapting to the cold. This shows that he needs to make his body get used to the cold or he won’t be able to carry on. Also, Finding your way around Alaska is the same is finding your classes in high school. In the book...

Words: 273 - Pages: 2

Premium Essay

Survival Behavior Analysis

...show survival behaviors that are minor but essential to survival. These behaviors will shape the survivors’ ways to react to certain situations such as saving a loved one or getting the resources needed to survive. Another example is deciding to end someone's life that has asked you to kill them. These situations can occur at any time and place. These decisions are tough but in the long run make a better survivor who is able to survive longer and be more prosperous in a apocalyptic setting. The behaviors that are the best for survival are the abilities to be self reliant ,to be resourceful, and to react to many different behavior changes and decisions. Being self reliant means to use strength that is not borrowed. It also means to do what it takes to survive. An example is the Tower of David in Venezuela. Initially created under the name of The Centro Financiero Confinanzas in 1990, during a time when many wealthy investors viewed third world areas as land ripe for mega structures to invigorate the failing area’s economy,it failed in the long run because of finances and budget cuts.Now it is an abandoned project. (Toepfer 5). It has 3000 habitats. Interestingly, it has no power. The stairs are incomplete and there is no running water, but remember 3000 people live there(Toepfer 5). The reason why is because they are self reliant and...

Words: 1344 - Pages: 6

Premium Essay

Survival Lottery Rhetorical Analysis

...P(1) The Survival Lottery is morally required to ensure the maximum amount of people’s survival. P(2) Patients Y and Z are dying and need organs. P(3) Doctors are morally required to treat dying patients. So(4) It is morally required for doctors to treat patients Y and Z. P(5) Killing innocent person A for his organs will save patients Y and Z’s lives. P(6) Killing A will ensure the survival of the maximum amount of people than not killing A. P(7) Institute of survival lottery is morally required. The argument in The Survival Lottery is about saving two or more people by killing an innocent person and using his or her organs to save other people. Harris talks about why it is okay to kill one person in order to save multiple people. He...

Words: 595 - Pages: 3

Free Essay

Important Online Educational Resources

...are your favorite sites to learn from? What sites would you add to this list? (View the original post for any future updates: http://goo.gl/8HLFw) CONTENTS: I. Top Picks II. Universities and Higher Education (updated to v.2.0 on 1/27/12) III. General Collections (updated to v.2.0 on 1/27/12) IV. How-to & DIY V. Studying with Peers VI. Online Books, eBooks, & Journals VII. Computers, Software, & Programming (updated to v.1.2 on 1/26/12) VIII. Science & Math (updated to v.2.0 on 1/27/12) IX. Logic, Words, & Memory X. Languages XI. Music (updated to v.1.2 on 1/26/12) XII. History XIII. Business, Economics, Finance, & Investing (updated to v.1.2 on 1/26/12) XIV. Food, Nutrition, & Cooking XV. Survival Tips XVI. Documentaries (updated to v.2.0 on 1/27/12) XVII. Other =========== I. TOP PICKS Khan Academy http://www.khanacademy.org/ Academic Earth - Online courses from the world's top scholars http://academicearth.org/ TED - Technology, Entertainment, & Design http://www.ted.com/ MIT Open CourseWare http://ocw.mit.edu/courses/ Stanford Engineering Everywhere http://see.stanford.edu/see/courses.aspx Open Yale Courses http://oyc.yale.edu/ About U. - Collection of free online courses from About.com http://u.about.com/ Wikiversity http://en.wikiversity.org/wiki/Wikiversity:Main_Page YouTube EDU http://www.youtube.com/education?b=400 The Open University - Study at the OU http://www3.open.ac...

Words: 2831 - Pages: 12

Free Essay

San Kinship

...March 14, 2013 Anthropology 101 Dr.Tovar As far back as time goes many old cultures adapted a lifestyle of hunting and gathering food for themselves in order to survive. This was known as a foraging and it is one of the oldest methods of survival for small groups of tribes everywhere. However, this method had its good days and bad days. Sometimes hunters could bring back enough food to last them for a few days at a time, and then sometimes they wouldn’t find anything at all. So, the bond of kinship began to form amongst the tribe. The premise of a kinship bond was to share your goods and food with someone less fortunate. For example, in the San tribe if a group of hunters went out and only some came back with food, the other hunters would share some of their spoils as to help one another out. So as you can see and will find out, this lifestyle and kinship bond has the ability to help the San tribes prosper a long time. The San tribes of southern Africa live in the Kalahari Desert and have so for a long time thriving through foraging. Their concepts and principals of kinship ties are so straightforward and understandable that it is easy to see why they have flourished for centuries. Specific examples of kinship are shown through how this tribe thinks, how they act, and how they live their lives. When it comes to living day by day, the San use their women to gather all sorts of berries, nuts, and fruits to bring to eat while the men go and bring back the meat. Although they...

Words: 854 - Pages: 4

Premium Essay

Idle No More

...Idle No More Wilfredo Q. Mamaril Jr Stenberg College Idle No More The “Idle no More” movement is a grassroots political undertaking of a large group of Canadian Aboriginal people which consist of First Nations, Inuit’s and Metis. The primary focus of the movement is on Indigenous rights and environmental protection. It began as a fairly small group in Canada, but rapidly became international in scale essentially from rapid proliferation through the use of social media such as Facebook and Twitter (OJEN, n.d.). The movement has also attracted a great deal of attention in the Canadian national and local mainstream media, through rallies, protests, teach-ins and direct political actions. Political actions such as flash mobs and round dances around the country protested against omnibus Bill C-45 (currently known as the Jobs and Growth act, 2012) that was introduced and announce by Prime Minister Stephen Harper in October 2012 without consulting the Indigenous peoples (OJEN, n.d.). The vision of Idle No More is to “call on all people to join in a peaceful revolution, to honour Indigenous sovereignty, and to protect the land and water” (idlenomore.ca, n.d.). The Idle No More manifesto contends that “the state of Canada has become one of the wealthiest countries in the world by using the land and resources. Canadian mining, logging, oil and fishing companies are the most powerful in the world due to land and resources. Some of the poorest First Nations communities (such as...

Words: 1575 - Pages: 7

Premium Essay

World History

...Stove Fuel for Portable Pack Stove Quantity Notes Review Date BOB Pack Item (Write in other items as necessary) Clothing Lightweight Long Sleeve Shirt Pants Underwear Wool Hiking Socks Mid-weight Fleece Brimmed Hat Leather Work Gloves Shemagh Rain Poncho Shelter and Bedding Tarp Tent Sleeping Bag Ground Pad Fire Ignition Source Fire Tinder Waterproof Container Quantity Notes Review Date BOB Pack Item (Write in other items as necessary) First Aid First Aid Kit Insect Repellant Mylar Survival Blanket Hygiene Disinfecting Wet Napkins Hand Sanitizer All Purpose Soap Hygiene/Signal Mirror Small Pack Towel Toilet Paper Tools Survival Knife Multi-Tool Lighting LED Headlamp Mini LED Keychain Light Glowstick Candle Quantity Notes Review Date BOB Pack Item (Write in other items as necessary) Communications Cell Phone Crank Power Charger Emergency Radio with Hand Crank Survival Document Portfolio $500-$1000 in Small Denominations Quarters Local Area Map Compass Small Note Pad and Pencil Emergency Whistle Self Defense Pepper Spray Handgun Ammunition Miscellaneous 550 Parachute Cord Cotton Bandana Duct Tape 55 Gallon Contractor Grade Garbage Bag Resealable Bags in a Variety of Sizes Sunglasses N95 Face Mask Sewing Kit Quantity Notes Review Date BOB Pack Item (Write in other items as necessary)...

Words: 303 - Pages: 2

Free Essay

Survival

...confronted with an unexpected survival situation man has the potential to overcome many challenges, beat incredible odds, and come out a survivor. But just what is survival anyway? Survival is the art of surviving beyond any event. To survive means to remain alive; to live. Survival is taking any given circumstance, accepting it, and trying to improve it, while sustaining your life until you can get out of the situation. And most importantly, survival is a state of mind. Survival depends a great deal on a person's ability to withstand stress in emergency situations. Your brain is without doubt your best survival tool. It is your most valuable asset in a survival situation. It isn't always the physically strong who are the most effective or better at handling fear in emergency situations. Survival more often depends on the individual's reactions to stress than upon the danger, terrain, or nature of the emergency. To adapt is to live. Mental skills are much more important than physical skills in survival situations. A person's psychological reactions to the stress of survival can often make them unable to utilize their available resources. You most likely won't use your physical skills if you don't have a positive mental attitude. One definitely must be in the proper frame of mind to survive an unplanned survival situation. Attitude or psychological state is most certainly number one. It is undoubtedly the most important ingredient of survival. With the proper attitude almost...

Words: 1983 - Pages: 8

Premium Essay

I Don't Know

...1. The UN Declaration on the Rights of Indigenous Peoples was created on 13, September, 2007 by the General Assembly in New York, America. | 2. The declaration was created for all Indigenous Peoples so that they were returned the rights they deserved, such as the rights to their language, employment, health, education and other major issues. | 3.“As an international instrument, the Declaration provides a blueprint for Indigenous peoples and governments around the world, based on the principles of self-determination and participation, to respect the rights and roles of Indigenous peoples within society. It is the instrument that contains the minimum standards for the survival, dignity and well-being of Indigenous peoples all over the world” - Mick Gooda, Aboriginal and Torres Strait Islander Social Justice Commissioner. | 4.Was a turning point in the struggle for Indigenous Rights because this statement was created after a long time of suffering endured by the Indigenous Peoples. | 5.It reduced the levels of disadvantage and discrimination, returned the Indigenous Peoples their rights to cultural identities, self- representation, and to their values and beliefs have been noticeably respected at an international level. | 6.The world’s indigenous peoples do not share the same story of colonization. In the New World, white European colonizers arrived and settled on the land, disregarding the Indigenous people. | 7.Many countries have continued to tackle the problem of...

Words: 446 - Pages: 2

Free Essay

Why They Survive

...Tran 1 Duc Tran INDV 150 10/03/2009 Why they survived The novel “Life of Pi” by Yann Mantel is one of the most interesting ones I have ever read. The protagonist Pi Patel really impressed me with his amazing story. He survived 227 days after a shipwreck, while stranded on a boat with a Bengal tiger in the Pacific Ocean. After reading the novel, I was pushed strongly to find more information about survivors like Pi. And I was so surprised when I found out that all these survivors shared the same traits. First, a survivor must have saved his precious energy and not wasted time confronting the others who were on the same boat. That means he must have stood calm in the difficult situation. Pi did that when he tried not to fight against dangerous animals such as a hyena, an orangutan and a tiger. He kept away from them and let them fight against the other. Then Richard Parker killed the hyena and Pi tried to tame the tiger. In addition to Pi, Kiley, whose story was mentioned in the article “Miraculous survivors: Why they live while others die” by John Blake of CNN, also kept away from her two male companions in the boat who bickered and cursed with the others. Because the two men wasted much energy on fighting so they died shortly after the shipwreck. And due to her ruthless decision, Kiley survived. Second, all these survivors were able to control themselves and hope for the best. What helped them most was the act of prayer. Both Kiley and Pi always prayed all the time...

Words: 1010 - Pages: 5

Premium Essay

What Is the Most Important Thing to Survive a Disaster?

...What Is The Most Important Thing To Survive A Disaster? ‘The End is Near’ – While this short but somewhat perturbing phrase might have become a common sight since the Mayan prediction of 2012, reactions to it vary from one person to another. However, deep down, everyone realizes that it could indeed be the grave truth and naturally feel apprehensive. In such a situation, the next sensible step is to acquire training in survival skills and make adequate preparations should disaster strike sooner than expected. Given the fact that ‘End’ could arrive in various ways – an explosion, a natural disaster or an accident being some of the possibilities – the onus is on you to grasp the situation and swing into action swiftly and logically. Ensuring survival is the main objective and for fulfillment of this goal, presence of one factor, namely the will and determination to survive followed by resilience, is a must. True though it is that your training will teach you what to do in the event of a disaster and how to organize things around you, first and foremost it is imperative to maintain clarity of thought and resisting panic attacks. Panic is the first reaction that most humans exhibit when faced with a disaster irrespective of its magnitude and it does take plenty of fortitude to overcome this emotion but it must be done. Letting panic sweep over your thoughts would not just cloud your judgment but also plunge you into the depths of despair wherein the temptation to give up would...

Words: 525 - Pages: 3