25.10.2016 Views

SAP HANA Predictive Analysis Library (PAL)

sap_hana_predictive_analysis_library_pal_en

sap_hana_predictive_analysis_library_pal_en

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

UPDATE <strong>PAL</strong>_DISTRPROB_DISTRPARAM_TBL SET VALUEE = (SELECT VAL FROM<br />

<strong>PAL</strong>_DISTRFIT_ESTIMATION_TBL WHERE NAME = 'MEAN') WHERE NAME = 'MEAN';<br />

UPDATE <strong>PAL</strong>_DISTRPROB_DISTRPARAM_TBL SET VALUEE = (SELECT VAL*VAL FROM<br />

<strong>PAL</strong>_DISTRFIT_ESTIMATION_TBL WHERE NAME = 'SD') WHERE NAME = 'VARIANCE';<br />

SELECT * FROM <strong>PAL</strong>_DISTRPROB_DISTRPARAM_TBL;<br />

DROP TABLE #<strong>PAL</strong>_CONTROL_TBL;<br />

CREATE LOCAL TEMPORARY COLUMN TABLE #<strong>PAL</strong>_CONTROL_TBL(NAME VARCHAR (50),INTARGS<br />

INTEGER,DOUBLEARGS DOUBLE,STRINGARGS VARCHAR (100));<br />

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('LOWER_UPPER',0,null,null);<br />

DROP TABLE <strong>PAL</strong>_DISTRPROB_RESULT_TBL;<br />

CREATE TABLE <strong>PAL</strong>_DISTRPROB_RESULT_TBL LIKE <strong>PAL</strong>_DISTRPROB_RESULT_T;<br />

CALL DM_<strong>PAL</strong>.<strong>PAL</strong>_DISTRPROB_PROC(<strong>PAL</strong>_DISTRPROB_DATA_TBL,<br />

<strong>PAL</strong>_DISTRPROB_DISTRPARAM_TBL, #<strong>PAL</strong>_CONTROL_TBL, <strong>PAL</strong>_DISTRPROB_RESULT_TBL) WITH<br />

OVERVIEW;<br />

SELECT * FROM <strong>PAL</strong>_DISTRPROB_RESULT_TBL;<br />

The expected result is as follows:<br />

4.3 Scenario: Survival <strong>Analysis</strong><br />

In clinical trials or community trials, the effect of an intervention is assessed by measuring the number of<br />

subjects who have survived or are saved after that intervention over a period of time. We wish to measure the<br />

survival probability of Dukes’C colorectal cancer patients after treatment and evaluate statistically whether<br />

the patients who accept treatment can survive longer than those who are only controlled conservatively.<br />

Option 1: Kaplan-Meier Estimate<br />

Technology Background<br />

Kaplan-Meier estimate is one of the simplest way to measure the fraction of subjects living for a certain<br />

amount of time after treatment. The time starting from a defined point to the occurrence of a given event, for<br />

example death, is called as survival time.<br />

This scenarios describes a clinical trial of 49 patients for the treatment of Dukes’C colorectal cancer. The<br />

following data shows the survival time in 49 patients with Dukes’C colorectal cancer who are randomly<br />

assigned to either linoleic acid or control treatment.<br />

Table 429:<br />

Treatment<br />

Survival Time (months)<br />

Linoleic acid (n = 25) 1+, 5+, 6, 6, 9+, 10, 10, 10+, 12, 12, 12, 12, 12+, 13+, 15+, 16+,<br />

20+, 24, 24+, 27+, 32, 34+, 36+, 36+, 44+<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Predictive</strong> <strong>Analysis</strong> <strong>Library</strong> (<strong>PAL</strong>)<br />

End-to-End Scenarios P U B L I C 565

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!